Created
January 16, 2019 15:29
-
-
Save pulketo/45c25872ca409cd955281f0c77606d8e to your computer and use it in GitHub Desktop.
bash, awk,sed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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