• Linux
  • FreeBSD
  • Networking
  • Python
  • AWS
  • WebDev
  • About Us

sed command to replace everything before the fisrt space

Written by
Linux Leave a Comment

Sometimes you may need to replace the timestamps from a very large log file

sed 's/[^ ]* //' file.txt

To make the change permanent to the file :

sed  -i 's/[^ ]* //' file.txt

© Copyright 2020.TechieNix. All Rights Reserved.