![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Outputting from two input files. | Liguidsoul | Shell Programming and Scripting | 5 | 04-10-2007 02:31 AM |
| input a line at the beginning of every file in a directory? | Terrible | Shell Programming and Scripting | 6 | 08-16-2006 06:42 AM |
| How to prompt for input & accept input in ONE line | newbie168 | Shell Programming and Scripting | 2 | 09-27-2005 05:02 AM |
| perl question - removing line from input file | reggiej | Shell Programming and Scripting | 3 | 06-07-2005 01:45 PM |
| read a file as input and pass each line to another script | sajjad02 | Shell Programming and Scripting | 0 | 09-24-2004 11:13 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
sed not outputting last line of input file
I am using sed for a simple substitution (see command syntax below). Everything works fine except that the last line of the input file does not get written to the output file. Has anyone ever seen this and know of way to force the last line to be written?
I don't know if it's playing a part in this or not, but, each input line can be up to 1600 characters long. All of the lines in the file, with the exception of the last one, are output regardless of whether a substitution was needed or done, which is the expected result. Command(s) used ----------------- sed 's/:60/:00/g' < inputfile > outputfile or sed '1,$ s/:60/:00/g' < inputfile > outputfile Last edited by 2reperry; 12-16-2005 at 10:49 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|