10/06/2007

Splitting a large disk image.

The Problem: You have a disk image (or any file) that is too big to write to a DVD.

The Solution: Split the image file into smaller files that you can save to multiple DVDs.

To Split the file:

$ cat mydisk.dd |gzip -c| split -a 3 -d -b 4500m - mydisk.dd

To restore, use a command similar to the following:

$ cat mydisk.dd.* | gzip -dc| dd of=/outdir/mydisk.dd

9/07/2007

Using awk with multiline records

To print the first field of a multiline record:

awk 'BEGIN {RS = ""} {print $1}'


If you want each line to be one field in the multiline record:

awk 'BEGIN { FS= "\n"; RS = "" } {print $1}'

7/30/2007

Free Audio Books!



Free public domain audiobooks. This is a legitimate site. No Ads or pop-ups, it is very clean with a great collection!


www.librivox.org

Time Zone Converter


Do time zone conversions between two cities. This time zone calculator take into account daylight saving time (DST), local time zone and accepts dates in past or future.

http://www.timeanddate.com/worldclock/converter.html