Sed (Stream EDitor) is a command line editor for POSIX environment.
I am using the below code for replacing a string inside a shell script. echo $LINE | sed -e 's/12345678/"$replace"/…
unix shell sedIs there any way to tell sed to output only captured groups? For example given the input: This is a …
regex sedI would like to update a large number of C++ source files with an extra include directive before any existing #…
command-line sed text-processingI need to retrieve last 100 lines of logs from the log file. I tried the sed command sed -n -e …
linux logging sedSuppose I have 'abbc' string and I want to replace: ab -> bc bc -> ab If I …
replace syntax sedI have a file of id's that are comma separated. I'm trying to replace the commas with a new line. …
macos unix sedIn my bash script I have an external (received from user) string, which I should use in sed pattern. REPLACE="&…
string sed escapingSuppose I have a file with lines aaa=bbb Now I would like to replace them with: aaa=xxx I …
regex sedFor some reason I can't seem to find a straightforward answer to this and I'm on a bit of a …
shell sedI am trying to find out if it is possible to edit a file in a single sed command without …
unix sed solaris