Search Results

Search: Posts Made By: Kerbje
2,065
Posted By Corona688
The 'overwriting line' behavior is probably...
The 'overwriting line' behavior is probably caused by carriage returns, which return the cursor to the beginning of the line without moving down one line. Text files generated by Windows are full of...
2,065
Posted By neutronscott
Can also make it a part of your awk program: ...
Can also make it a part of your awk program:


awk 'BEGIN{OFS=";"} {sub(/\r$/,"")} !/^ / {f=$0} /^ / {print f, $0}' test.txt


edit:
or use it in RS if you know it is there for certain. ...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy