On Fri, Oct 31, 2003 at 02:50:17PM -0500, Vivek Kumar wrote: > Hi, > > Is there any other command to print any character say "*" 80 times.. > > like echo "******************************" > (In bsh or ksh) > > Is there any short command ??
A possible not good way to do this in bash: for x in `seq 80`; do echo -n "*"; done ; echo the last echo is to get the newline to print. In perl you could do: perl -e 'for(1..80){print "*";}print "\n";' Technically that is shorter than: echo "********************************************************************************" But not by much... Bijan -- Bijan Soleymani <[EMAIL PROTECTED]> http://www.crasseux.com
signature.asc
Description: Digital signature