Advertisement
dd97

grep-merge-sed

Mar 31st, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # my snippet to list a directory, write the list to a file, match and replace the word in the file, and output the
  4. # content of the file.
  5.  
  6. ls -l /home/$USER | grep "Down" > word.txt; sed -i -e 's/Down/Up/g' word.txt; cat word.txt;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement