Created
March 7, 2013 02:26
-
-
Save joeyimbasciano/5105113 to your computer and use it in GitHub Desktop.
WTF BASH (╯°□°)╯︵ ┻━┻
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
[user@ip-10-60-109-73]# cat MINDBLOWN | |
HELLO | |
WORLD | |
[user@ip-10-60-109-73]# grep -v HELLO MINDBLOWN | |
WORLD | |
[user@ip-10-60-109-73]# grep -v HELLO MINDBLOWN > MINDBLOWN | |
[user@ip-10-60-109-73]# cat MINDBLOWN | |
[user@ip-10-60-109-73]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/6696842/bash-redirect-input-from-file-back-into-same-file