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!
In Section
Obfuscated Code