[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: print command

* Vivek Kumar (vivek@gorave.net) [031031 11:50]:
> Hi,
> Is there any other command to print any character say "*" 80 times..
> like echo "******************************"
> (In bsh  or ksh)

how about this (bash):

for ((i=0;i<80;i++)); do echo -n '*'; done ; echo

I don't know about bsh or ksh, though; I'd have to look through the man
page to see if they have for loops something like this.

good times,

Attachment: signature.asc
Description: Digital signature

Reply to: