in reply to Way to remove the new line characters at the end of the content in a file
perl -ni.bak -e "print $_ if /\w/;" my_file.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Way to remove the new line characters at the end of the content in a file
by shmem (Chancellor) on Jul 22, 2015 at 09:48 UTC | |
by choroba (Cardinal) on Jul 22, 2015 at 10:16 UTC | |
by Laurent_R (Canon) on Jul 22, 2015 at 11:25 UTC | |
|
Re^2: Way to remove the new line characters at the end of the content in a file
by Anonymous Monk on Jul 24, 2015 at 05:54 UTC |