in reply to Re^4: Does Perl 5 (or 6?) need another built-in variable for the -F switch?
in thread Does Perl 5 (or 6?) need another built-in variable for the -F switch?
You're absolutely right, this is what I'd used (from my .bash_history):
This has the problems you noted if $F is anything special to the shell (e.g. \t, contains spaces, etc).export F=: perl -na -F$F -e "shift @F; print join('$F', @F);" < foo
Sorry for the lack of precision in quoting. No real excuses. Will try harder.
|
|---|