Check These Out
accomplishes the same thing without unzipping the whole file, and while i have never seen a log.tar.gz file that was a binary, i will concede that it might happen, so add the -a in there:
$zgrep -ia "string" log.tar.gz
it's still shorter/easier to type...
this bzips a folder and transfers it over the network to "host" at 777k bit/s.
cstream can do a lot more, have a look http://www.cons.org/cracauer/cstream.html#usage
for example:
$ echo w00t, i'm 733+ | cstream -b1 -t2
hehe :)
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
options: -n line nbrs, -i ignore case, -s no "doesn't exist", -I ignore binary
args: * for all files of current dir (not hidden), .[!.]* for all hidden files
I don't include by default the -R (recursive) option, which is not always useful. You add it by hand when needed.
Get simple description on each file from /bin dir, in list form, usefull for newbies.
When you fill a formular with Firefox, you see things you entered in previous formulars with same field names. This command list everything Firefox has registered. Using a "delete from", you can remove anoying Google queries, for example ;-)
Sleep 5h and plays the song as a wake up alarm
When you have different digital cameras, different people, friends and you want to merge all those pictures together, then you get files with same names or files with 3 and 4 digit numbers etc. The result is a mess if you copy it together into one directory.
But if you can add an offset to the picture number and set the number of leading zeros in the file name's number then you can manage.
OFFS != 0 and LZ the same as the files currently have is not supported. Or left as an exercise, hoho ;)
I love NF="${NF/#+(0)/}",it looks like a magic bash spell.
Create a directory named with the current date in ISO 8601 format (yyyy-mm-dd). Useful for storing backups by date. The --iso switch may only work with GNU date, can use format string argument for other date versions.