Advertisement
Master_1817

Sample sed dommand

Apr 2nd, 2020
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. # Sample "sed" command to find and replace text
  2. echo 'iran' > samplefile
  3. cat samplefile
  4. sed -i 's/iran/china/g' samplefile
  5. cat samplefile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement