Professional Documents
Culture Documents
Unix Tutorial
Unix Tutorial
By Joshua Lande
SASS
January 21
This is not a philosophy talk!
&htt!%''en($i)i!edia(org'$i)i'Uni*!hiloso!hy+
The Basics
Sort is a !rogra" to
sort the lines of
standard in!ut
htt!%''$$$(caton"at(net'.log'a$)5one5liners5e!lained5!art5one'
htt!%''$$$(caton"at(net'.log'a$)5one5liners5e!lained5!art5t$o'
htt!%''$$$(caton"at(net'.log'a$)5one5liners5e!lained5!art5three'
htt!%''unsta.le"e(.logs!ot(co"'2<<E'<C'"atch5
i!5range5using5egre!5.ash(ht"l
xargs
#xample &I use all the ti"e+% 4un all the scri!ts
in all su.directories
$ find . -name "*.sh" | xargs -I{} sh {}
$ find . -name '*.dat' | xargs -I{} cp
{} /folder/
4efor"ats tet
=o to !revious folder%
$ cd -
Instead%