![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Favourite One-liners?by fizbin (Chaplain) |
on Jun 30, 2005 at 10:02 UTC ( #471257=note: print w/replies, xml ) | Need Help?? |
There's this, which is useful in breaking up a certain type of fixed-length-record file (record size: 13612) into a file with line feeds at appropriate places: perl -ple 'BEGIN {$/=\13612;}' pstann.new > pstann.new.linefeed We can't just use the unix "pr" utility because that tends to break on upper-128 characters.
In Section
Meditations
|
|