[Discuss] SED question
Jerry Feldman
gaf at blu.org
Tue Oct 4 11:47:41 EDT 2011
On 10/04/2011 11:35 AM, Chandler, Scott wrote:
> I've got a script running a sed command that I need help interpreting. The line is "sed '$d' file1.txt > file2.txt".
>
> I understand that sed '$d' file1.txt removes the last line from the file but will the resultant file (file2.txt) contain only the last line from file1.txt or will it contain everything *except* the last line from file1.txt?
>
This will remove the last line of the file.
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id:3BC1EB90
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66 C0AF 7CEA 30FC 3BC1 EB90
More information about the Discuss
mailing list