in reply to Evolution of an Obfuscated Throwaway Script
Okay, so this is really NOT obfuscated, but it is a one liner!
#!/home/bbq/bin/perl
# Trust no1!
I kinda like the look, but merlyn has already pointed out that s/// for is bad. :)# 1st shot df -h | perl -e '@i = <>;s/(\ +)/\,/g && print for @i[1..@i];' > the.c +sv # 2nd shot df -h | perl -e '/^\w/&&next||s/\ +/\,/g&print for<>' > the.csv
#!/home/bbq/bin/perl
# Trust no1!
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: (bbq) RE: Evolution of an Obfuscated Throwaway Script
by DrManhattan (Chaplain) on Oct 14, 2000 at 01:58 UTC | |
by BBQ (Curate) on Oct 19, 2000 at 21:33 UTC | |
RE: (bbq) RE: Evolution of an Obfuscated Throwaway Script
by mischief (Hermit) on Oct 16, 2000 at 13:39 UTC | |
by merlyn (Sage) on Oct 16, 2000 at 14:37 UTC |
In Section
Obfuscated Code