printing out all the lines that start with a certain sequence with grep
Print out all the files starting with the word ‘alias’ and append them to the ~/.aliases file
1
grep '^alias ' ~/.zshrc >> ~/.aliases
This post is licensed under CC BY 4.0 by the author.