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

Re: print command



* Kirk Strauser (kirk@strauser.com) [031101 09:07]:
> At 2003-10-31T19:50:17Z, Vivek Kumar <vivek@gorave.net> writes:
> 
> > Is there any other command to print any character say "*" 80 times..
> 
> Ooh!  My turn:
> 
>     $ yes '*' | head -n 60 | xargs echo | sed 's/ //g'
> 
> I'm sure that's optimizable somehow, but I haven't really looked at it yet.

yes '*' | head -n 80 | tr -d '\n'

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
http://www.digitalconsumer.org/	Protecting fair-use rights in the digital world

Attachment: signature.asc
Description: Digital signature


Reply to: