Search Results

Search: Posts Made By: dmesserly
3,194
Posted By alister
There's no need to resort to that level of...
There's no need to resort to that level of inefficient and complicated indirection. In most terminals, one can simply type control-v control-x to generate the character denoted by ^x, where x is...
3,194
Posted By Yoda
Use printf inside sed to create a form feed and...
Use printf inside sed to create a form feed and remove it:
sed 's/'"$(printf '\014')"'$//g' inputfile > outputfile
3,194
Posted By Corona688
That is a form feed, octal 014. How to embed...
That is a form feed, octal 014.

How to embed this in other things can vary, but you can try \014 inside strings in awk. Whether sed allows this depends on your version of sed.
11,999
Posted By hanson44
$ cat input.txt first line something else ...
$ cat input.txt
first line
something else
Pattern Data Data Data
Data Data Data
Data Data Data
...
$ sed -n "/Pattern/,$ p" input.txt
Pattern Data Data Data
Data Data Data
Data Data Data...
2,294
Posted By Corona688
Most systems don't have dos2unix. Any system...
Most systems don't have dos2unix.

Any system will have tr.

tr -d '\r' < dostext > unixtext
Showing results 1 to 5 of 5

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