d_i_r_t_y has asked for the wisdom of the Perl Monks concerning the following question:
the problem is that somewhere along the line, all of the end-of-line chars in the script end in the windows end-of-line char, which looks like an underscored 'M' in my editor. what is the Quick'n'Dirty TM solution to this?
cat 'file' | perl -ne 's/\m$/\n/g; print' > 'newfile' doesn't work (the \m was just a guess...)
cheers,
d_i_r_t_y
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: converting windoze end-of-line chars to unix
by tye (Sage) on Dec 29, 2000 at 04:35 UTC | |
by spaz (Pilgrim) on Dec 29, 2000 at 06:27 UTC | |
|
Re: converting windoze end-of-line chars to unix
by fundflow (Chaplain) on Dec 29, 2000 at 04:29 UTC | |
by d_i_r_t_y (Monk) on Dec 29, 2000 at 04:54 UTC | |
by fundflow (Chaplain) on Dec 29, 2000 at 05:49 UTC |