in reply to How to generate files based on some special character?
$ perl -lane '$F[0] eq "<" and open O, "> $F[1]" or print O $_' large_ +file
Obviously, I wouldn't use this at home, as it could burn it down ;-)
...because there are no error checks (on "file name", open and print) and because of the sloppy 2-arguments usage of open
--
altblue.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to generate files based on some special character?
by AltBlue (Chaplain) on Jul 22, 2008 at 20:00 UTC |