Search Results

Search: Posts Made By: aaronpoley
13,810
Posted By aaronpoley
Got something to work
When I tried fmt as shown above, the output is the input. But, the following works, breaking up the lines in test-d at occurrences of "sd" (> is a command prompt):
sed '
> s/sd/\
> /g' test-d >>...
13,810
Posted By aaronpoley
If I try typing sed "s/string/string\n" filename,...
If I try typing sed "s/string/string\n" filename, I'll get "\n" inserted everywhere I want the newline, but they'll be interpreted as a literal "\" and literal "n" by grep, not as newlines, so the...
13,810
Posted By aaronpoley
finding string in very long file without newlines
What's the best way to find a string in a very long file without newlines in Unix? The standard utility I'm aware of for finding a string in a single file is grep, but for a long file without...
3,196
Posted By aaronpoley
replace text string with a newline
I want to replace a text string with a newline. I have a long text file of random characters. I want to replace all the occurences of "pe" with a newline. How can I do that in Unix? There's a...
Showing results 1 to 4 of 4

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