in reply to (bbq) RE: Evolution of an Obfuscated Throwaway Script
in thread Evolution of an Obfuscated Throwaway Script

df -h | perl -lpe 's/\s+/,/g' > the.csv
FORE!

Sorry, I know it's supposed to be obfuscated, but I can't resist the urge to golf. :)

-Matt

Replies are listed 'Best First'.
RE: RE: (bbq) RE: Evolution of an Obfuscated Throwaway Script
by BBQ (Curate) on Oct 19, 2000 at 21:33 UTC
    I would definitly stand up and clap if it weren't for one small detail. The first line in this case would read:
    Filesystem,Size,Used,Avail,Use%,Mounted,on

    Yeah, I know... I'm being a picky sore looser! :)

    #!/home/bbq/bin/perl
    # Trust no1!