Search Results

Search: Posts Made By: prooney
1,793
Posted By prooney
Thanks, all, just wanted to close the loop on...
Thanks, all, just wanted to close the loop on this as Chubler_XL's updated script now works:
/Operator\r/{
N
s/Owner and Operator\r\nGuide /Installation Guide\
/
}
the hex version of carriage...
1,793
Posted By prooney
Thank you for the suggestion to check spaces (hex...
Thank you for the suggestion to check spaces (hex 20) at the end of the lines. The command od -ax data_p108.txt yields
0000000 C o n s u l t sp S e c t i o n sp
...
1,793
Posted By prooney
sed multiline problem - reply using \r
interesting suggestion, to use \r\n (carriage return & new line) instead of just \n in the command

/Operator$/{
N
s/Owner and Operator\r\nGuide /Installation Guide\
/
}

unfortunately, I got...
1,793
Posted By prooney
sed multiline problem
I'm trying to replicate the sed output on p.108 of Sed&Awk,by Doughery & Robbins, 2nd edition.

I'm on a Windows 10 Surface Pro, running Cygwin for 64-bit versions of Windows.

Input text saved...
3,796
Posted By prooney
Thank you for your solution and for advice on...
Thank you for your solution and for advice on good practices in formatting posts.

At my installation, the utility is called dos2unix
3,796
Posted By prooney
Remove carriage returns from awk output
I'm on Linux version 2.6.32-696.3.1.el6.x86_64, using the Ksh shell.

I'm working with the input file:

John Daggett, 341 King Road, Plymouth MA
Alice Ford, 22 East Broadway, Richmond VA...
Showing results 1 to 6 of 6

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