Search Results

Search: Posts Made By: appu2176
2,523
Posted By funksen
sed 's/$/\nDelay1/g' file may not work with...
sed 's/$/\nDelay1/g' file

may not work with other sed then gsed

Edit:

with non gsed:


sed 's/$/\^JDelay1/g' file


^J

is control v + control j
2,523
Posted By Franklin52
awk '{print $0 RS "Delay 1"}' file >...
awk '{print $0 RS "Delay 1"}' file > newfile
8,574
Posted By zaxxon
As it seems there is no newline at the end of...
As it seems there is no newline at the end of line anymore, but just the windows <cr>. On Unix side you can try to replace the ^M with \n like this:

tr -s '\015' '\n' < infile > outfile
8,574
Posted By bigearsbilly
do you have dos2unix? or cat file | tr...
do you have dos2unix?

or

cat file | tr -d '\015' > new_file


should do it.
Showing results 1 to 4 of 4

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