Unix utility SED provides an effective and a versatile way of deleting one or more lines from a designated file to match the needs of the user. This Unix... Read more
There are several utility software to convert text files from UNIX or Linux to DOS operating systems and vice-versa; however, it always helps to know the... Read more
To meet programming needs, one may need to insert text in a text file at designated areas. Linux has SED , the utility which allows the programmer to... Read more
Sed, or Stream Editor as it is commonly known, is mainly used for parsing text and transforming any text within a script. This feature of Sed is used in... Read more
Numbering lines (same as "cat -n file.txt") sed = file.txt The problem is that the display is effected on 2 lines. To set this as default: sed = file.txt |... Read more
Insert a blank line after each sentence (punctuated by a carriage return) sed G file.txt Insert a blank line after each sentence (punctuated by a carriage... Read more
The substitute command:[ s. ]changes all occurrences of the regular expression into a new value. 1st match (each line) encountered only sed... Read more
Insert a space between each letter. $ echo -e "hello lifenand hello to you" | sed 's/./& /g' h el l o l i f e a n d h e l l o t o y o u The... Read more
Reg exp and sed How to replace a top line followed by two spaces with a newline (or 2)? I already tested several expression Sed 's / ^ + / \ n /... Read more
I need help for a SED command. I have a "test" file which includes this line: <Context antiJARLocking="true" reloadable="true" cookies="true"> I would like... Read more