Skip to content

Instantly share code, notes, and snippets.

View jessicard's full-sized avatar
🍩
donut

Jessica Card jessicard

🍩
donut
View GitHub Profile
@jessicard
jessicard / cat
Created September 6, 2012 16:56
Command Line Tutorials Xargs and Cut
ls | xargs cat
@jessicard
jessicard / echo
Created August 22, 2012 17:55
Command Line Tutorials - More Tips & Tricks
echo $PS1
ls -la > temp.txt
awk '/root/ {print $1, $9;}' temp.txt
awk '$9 ~/^\./ {gsub(/jessica/, "nicelady"); print;}' ~/temp.txt
awk '/root/' ~/temp.txt
sed '/#.*/ d'
sed '11,$ d' ~/temp.txt
sed -ie 's/ow/aagh/g' ~/temp.txt
sed s/ow/aagh/g ~/temp.txt
echo "how now brown cow" > ~/temp.txt
sed s/ow/aagh/ ~/temp.txt