Top "Sed" questions

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

Recursively rename files using find and sed

I want to go through a bunch of directories and rename all files that end in _test.rb to end …

bash scripting sed find replace
How to escape single quote in sed?

How to escape a single quote in a sed expression that is already surrounded by quotes? For example: sed 's/…

sed escaping quote
sed beginner: changing all occurrences in a folder

I need to do a regex find and replace on all the files in a folder (and its subfolders). What …

regex linux shell sed
Remove Unicode characters from textfiles - sed , other Bash/shell methods

How do I remove Unicode characters from a bunch of text files in the terminal? I've tried this, but it …

bash unicode sed text-files spaces
sed in-place flag that works both on Mac (BSD) and Linux

Is there an invocation of sed todo in-place editing without backups that works both on Linux and Mac? While the …

linux macos sed bsd
sed delete lines not containing specific string

I'm new to sed and I have the following question. In this example: some text here blah blah 123 another new …

sed
sed command with -i option (in-place editing) works fine on Ubuntu but not Mac

I know nothing about Sed but need this command (which works fine on Ubuntu) to work on a Mac OSX: …

linux macos sed bsd inplace-editing
What are the differences between Perl, Python, AWK and sed?

just want to know what are the main differences among them? and the power of each language (where it's better …

python perl sed awk language-comparisons
Remove all text before colon

I have a file containing a certain number of lines. Each line looks like this: TF_list_to_test10004/Nus_…

r unix replace sed awk
How to use GNU sed on Mac OS 10.10+, 'brew install --default-names' no longer supported

Under Mac OS 10.10.3, I installed gnu-sed by typing: brew install gnu-sed --default-names When I type it again, I get the …

macos bash sed homebrew gnu