[Discuss] SED question

Gordon Marx gcmarx at gmail.com
Tue Oct 4 11:54:54 EDT 2011


On Tue, Oct 4, 2011 at 11:35 AM, Chandler, Scott
<Scott.Chandler at adheris.com> 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?

Is there some reason you didn't just try this at the commandline?



More information about the Discuss mailing list