Magic Command Lines
batch rename all files in directory
#replace something in filename for somethingelse for f in *.jpg; do mv -v $f `echo $f | sed 's/something/somethingelse/'`;donecreate multi-disc archive split to fit 15GB:
7z -mx=0 -v15g a archivename.7z inputdir 7z x archivename.7z.001unzip zip multiple (multidisk) archive
# (eg. zipfile.zip, zipfile.z01, zipfile.z02....) 7z x zipfile.zipdiakritika ze zmrsenyho zipu na windows
port install unzip +iconv unzip -O cp852 prace_uchazecu.zip pak detox -v -s uncgi * #pak (jsou_li tam podslozky) detox -r -v -s uncgi * #pridat podtrzitka do nazvu misto mezer: for oldname in *; do newname=`echo $oldname | sed -e 's/ /_/g'`; mv "$oldname" "$newname"; done;multiple JPEGs to PDF without recompression
# thx shadd pdfjam --a4paper *.jpganother lsof:
fs_usage -w -f filesystem --- zobrazí aktuálně otevřený souborydelete pdf pages
# where 13-31,341-349 are pages you wanna keep qpdf --empty --pages input.pdf 13-31,341-349 -- output.pdfmake imposition/booklet divided in "signatures" from pdf
pdfbook2 --paper=a4paper --signature 12 -o 0 -i 0 -t 0 -b0 -n input.pdf // group pages to signatures by 12 // no added borders, no cropwget archive mirror site
wget --restrict-file-names=windows -r -l 0 -np -E -m -k --no-verbose http://hlucnasamota.net/swaks -- swis knife for smtp - testovani smtp
cli word frequency analysis
cat YOUR_FILE|tr -d '[:punct:]'|tr '[:upper:]' '[:lower:]'|tr -s ' ' '\n'|sort|uniq -c|sort -rn EOF Comments requested ~~~~~~~~~ Binary Sxizophreny - index of comp related stuff Kangaroo's Homepage (czech)