Bash scripting

Shell Scripting: Extract a Fragment from a Text File

When working with large log files, a very common requirement is to extract a piece of log that's interesting. Most log files are actually text files, therefore it should be quite easy to do this, as long as you know the start line and the end line.

The following bash script will print to the standard output the content of the given text file, from the given start line to the end line.

Ubuntu: Organize Photos in Folders, by Date

I've been playing with Ubuntu 8.04 (Hardy) for the past couple of days. It's an amazing distribution, way better than anything I've seen before. As a desktop distribution everything seems to run out of box.

Syndicate content