merlyn@iwarp.intel.com (Randal Schwartz) (05/03/90)
In article <1574@island.uu.net>, daniel@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@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/