Create .pdf from .doc
$ wvPDF test.doc test.pdf
sudo apt-get install wv tetex-extra ghostscript
View this command to comment, vote or add to favourites
View all commands by anhpht
by David Winterbottom (codeinthehole.com)
$ wvPDF test.doc test.pdf
sudo apt-get install wv tetex-extra ghostscript
View this command to comment, vote or add to favourites
View all commands by anhpht
by David Winterbottom (codeinthehole.com)
$ oowriter -pt pdf your_word_file.doc
sudo apt-get install cups-pdf
View this command to comment, vote or add to favourites
View all commands by anhpht
by David Winterbottom (codeinthehole.com)
$ feh –bg-scale /path/to/wallpaper.jpg
View this command to comment, vote or add to favourites
View all commands by RanyAlbeg
by David Winterbottom (codeinthehole.com)
$ diffxml() { diff -wb <(xmllint –format "$1") <(xmllint –format "$2"); }
Diffs two xml files by formatting them first using xmllint and then invoking diff.
Usage: diffxml XMLFile1 XMLFile2
View this command to comment,…
$ upto() { cd "${PWD/\/$@\/*//$@}" }
Usage: upto directory
View this command to comment, vote or add to favourites
View all commands by sharfah
by David Winterbottom (codeinthehole.com)
$ jda() { cd $(pwd | sed "s/\(\/$@\/\).*/\1/g"); }
View this command to comment, vote or add to favourites
View all commands by saibbot
by David Winterbottom (codeinthehole.com)
$ find . -iname pom.xml -type f -exec bash -c "cat {} | sed s/1\.0\.46\-SNAPSHOT/1\.0\.48\-SNAPSHOT/g > {}.tmp " \; -exec mv {}.tmp {} \;
When a large maven release goes wrong, by deploying just some of the artifacts letting others behind,…
$ cat table-mv.txt | perl -pe ‘s{([^;]+);([^;]+)}{tbl$1/tbl$2}’ | perl -pe ‘s{(\S+)}{perl -i -pe #s/$1/g# xxx.sql}’ | tr "#" "\’" | bash
with a semicolon text file map, apply multiple replace to a single file
View this command…
$ jd() { cd **/"$@"; }
Usage: jd dir
Requires globstar. To set globstar use:
shopt -s globstar
View this command to comment, vote or add to favourites
View all commands by sharfah
by David Winterbottom (codeinthehole.com)
$ perl -i -pe ‘BEGIN{undef $/;} s/START.*?STOP/replace_string/smg’ file_to_change
from http://stackoverflow.com/questions/1030787/multiline-search-replace-with-perl
added greedy trick in wildcard match (.*?) from
http://www.troubleshooters.com/codecor…