Top "Sed" questions

Sed (Stream EDitor) is a command line editor for POSIX environment.

Create a dedicated folder for every zip files in a directory and extract zip files

If I choose a zip file and right click "extract here" a folder with the zip filename is created and …

linux shell sed awk unzip
sed substitution with Bash variables

I am trying to change the values in a text file using sed in a Bash script with the line, …

bash sed substitution
How do you strip quotes out of an ECHO'ed string in a Windows batch file?

I have a Windows batch file I'm creating, but I have to ECHO a large complex string, so I'm having …

windows batch-file sed quotes echo
Splitting a file in linux based on content

I have an email dump of around 400mb. I want to split this into .txt files, consisting of one mail …

linux file bash sed awk
Getting "sed error - illegal byte sequence" (in bash)

Doing some stream editing to change the nasty Parallels icon. It's poorly developed and embedded into the app itself rather …

bash sed
Sed gives: sed: can't read : No such file or directory

I have the following bash script which repeats for each image found. It needs to iterated over all html, css …

bash sed quoting gnu-sed
How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?

I have a file like the following and I would like to print the lines between two given patterns PAT1 …

shell perl awk sed pattern-matching
How to UNCOMMENT a line that contains a specific string using Sed?

The lines in the file : -A INPUT -m state --state NEW -m tcp -p tcp --dport 2000 -j ACCEPT -A INPUT …

bash awk sed
SED: multiple patterns on the same line, how to match/parse first one

I have a file, which holds phone number data, and also some useless stuff. I'm trying to parse the numbers …

regex parsing sed last-occurrence
Remove First Word in text stream

How would I remove the first word from each line of text in a stream? i.e. $cat myfile some …

bash sed awk cat