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

Re: print command



Vivek Kumar <vivek@gorave.net> writes:

> Is there any other command to print any character say "*" 80 times..
>
> like echo "******************************"
> (In bsh  or ksh)
>
> Is there any short command ??

Depending on what you're actually trying to do; Perl is the big hammer
you can throw at anything, of course.

perl -e 'print "*" x 80 . "\n"'

If you're just writing a script, I'd just hard-code the separator (or
maybe do without entirely).

-- 
David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell



Reply to: