Tip #864 Read a file line-by-line
This short script reads a file line-by-line ( whith whitespace characters too ) and outputs to STDOUT.Read more »
Tip #844 Hide files in an image
It is possible to hide a rar archive inside a png image file and then retrieve the files from this image.Read more »
- TAGS:
- cat
Tip #495 Print Until Regular Expression
Print a file until a regular expression is matched.Read more »
Tip #468 Moved Trac and Subversion repositories to another machine/direct
CASE: You've relocated Subversion and Trac repositories to another machine/directories. You don't want to edit n+1 trac.ini files.You have for example:
/repos/svn-myprojects/my-first-project
/repos/trac-myprojects/my-first-project
/repos/svn-myprojects/my-second-project
/repos/trac-myprojects/my-second-project
...etc...
Change ALL trac.ini repository_dir settings:
trac-mass-repodir-edit.sh:
Read more »
Tip #311 Filter stderr for cron jobs
Tired to get your mailbox full of cron information messages?Eg.: some programs (pg_dump, /etc/init.d/xxx, ...) output informational messages on stderr, but you can't close stderr because it may also contain failure informations.
Read more »
Tip #224 Add header/footer to command output
If you want to surround the output of a command by a header or a footer try the following:Read more »
- TAGS:
- cat
Tip #197 Zero files
Zero out files leaving directory and file sets in place - used for archival purposes.Read more »
Tip #194 Fix the previous command
If, like me, you often make mistakes on the command line, try using the history shortcut '^^' to repeat the last command with changes.For example:
Read more »
Tip #187 View non-printing characters with cat
You can view unprintable and non ASCII characters in a file with 'cat -v -t -e'Example:
Read more »
- TAGS:
- cat
alias aptitude at awk bash bc cal cat cd colrm comm cp csh curl cut date dd df dialog diff dirname dpkg du fc find fuser grep gs gzip history iconv kill ksh last less ln ls lsof lynx m4 md5sum mkdir mkfifo mkisofs mv mysql nc netstat openssl OSX perl ping popd ps pushd python read redirection rm scp screen sed sort ssh stat sudo svn tail tar tee test top tr uniq vim wc wget xargs