Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. I have a file with this content :
  2. "mg_bar mg_pourte mg_electrik la_skal la_skeviol la_bled rs_eolienne etc ..."
  3. I want to remove the file all words beginning with mg.
  4.  
  5. I know we have to use sed command but the problem
  6. sed -e 's/^bhop//' file.txt
  7.  
  8. Remove only twox caracters mg, when I want to remove the entire word.
  9.  
  10. Please help me.
  11. Thx.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement