Skip to main content

Linux command: sed

Linux command: sed - stream editor

sed - stream editor for filtering and transforming text

Notes: sed and grep operate line-by-line

Search and replace all my_ with his_ in file.txt file

$ sed -i 's/my_/his_/g' file.txt

Search and delete blank line

$ sed -i 's/^$//' file.txt

Popular posts from this blog

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'