Linux
Articles
gzip -dc filename.tar.gz | tar xf -
The configure file line endings has changed from Unix style to Windows style (probably winzip being stupid). To fix:
ln -s <target> <source> : create symbolic link echo $? : print last return value int tar -zcf out.tar.gz folder : compress folder to .tar.gz tar xzf out.tar.gz folder : extract .tar.gz to folder mogrify -format eps *.png : convert all *.png to *.eps sh -x <script> : show all commands executed by given script for debugIf this fails, the version of tar may not support gzip compression. In this case, you can use the traditional two-stage command:
gzip -dc filename.tar.gz | tar xf -
Commit directories to SVN individually
find . -maxdepth 1 -regex \./[A-Za-z0-9].+ -exec svn commit '{}' --message "Adding {} pictures folder to repository" \;
- "find ." matches all files and directories in the current directory
- "-maxdepth 1" only matches top-level directories
- "-regex \./[A-Za-z0-9].+" removes the ./ directory
- "-exec svn commit" runs "svn commit" with each result
- "{}" is replaced with the result directory name
- \; is required to end the line
Joining multiple PDFs together
If they're all the same size, you can use Ghostscript:gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf in3.pdf
Misc Notes
./configure: line 23: syntax error near unexpected token `$'in\r''
The configure file line endings has changed from Unix style to Windows style (probably winzip being stupid). To fix:
$ vim ./configure :set ff=unix :wq