stupid unix commands
Randal Schwartz
merlyn at iwarp.intel.com
Thu May 3 03:30:42 AEST 1990
In article <1574 at island.uu.net>, daniel at island (Dan Smith "fast screens, loud music, slow car") writes:
| I've found "yes" does have a use for generating a list of numbers
| in a shell script, a la:
|
| yes "" | cat -n | head -20 | tail -10
Gack. Get Perl:
perl -e 'for (11..20) {printf "%6d\n",$_;}'
...if you need the leading whitespace, and...
perl -e '@a=11..20; print "@a"'
if you just want whitespace separated values.
print "Just another Perl hacker,"
--
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III |
| merlyn at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/
More information about the Comp.unix.questions
mailing list