Archive for October, 2008

making a bootable windows iso from a local filesystem

October 25, 2008

mkisofs -b <boot.img> -no-emul-boot -boot-load-seg 1984
-boot-load-size 4 -iso-level 2 -J -joliet-long -l -D
-relaxed-filenames -N -V WinXP -v -x .DS_Store -o <windows.iso> <inputDir>

where <boot.img> is the location of the .img file for windows
<windows.iso> is the location and name of the output and <inputDir> is
teh location of the input filesystem

Add the bibliography in the Table of Contents

October 5, 2008

From here:

You have to manually add the “Bibliography” entry into the table of contents. In order to do so, put the following just before the \bibliography entry


if you use the book or report document class, or


if you use the article document class.

In combination with the “Hyperref”-Package you need to put the line below the \bibliography entry.

How to list all file extensions within a directory

October 1, 2008

Here’s a simple command to list all file extensions (recursively) within the current directory
(thanks to this forum posting

find . -type f | sed -e 's/.*\.//' | sort | uniq -c | sort -rn

When you have, for example, a large codebase with lots of files that have no extension (e.g., Makefile, README, etc.), the above lists them with their full path.

Here’s a modified version of this to remove any /path/to/file/ and so just list those files too:

find . -type f | sed -e 's/.*\.//' | sed -e 's/.*\///' | sort | uniq