Skip to content

Instantly share code, notes, and snippets.

@pulketo
Created January 16, 2019 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pulketo/45c25872ca409cd955281f0c77606d8e to your computer and use it in GitHub Desktop.
Save pulketo/45c25872ca409cd955281f0c77606d8e to your computer and use it in GitHub Desktop.
bash, awk,sed
remove first column
cat stuff.txt | awk '{$1=""}1' | awk '{$1=$1}1'
remove empty lines
cat stuff.txt | sed '/^$/d'
sed -i '/^$/d' stuff.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment