Srini's Point of View

My thoughts on technology, food and other fancies…

Argument list too long

Ever tried to copy or move a bunch of files on unix/linux from one location to another and see this error message spit out back at you??

$ cp /var/www/* /var/tmp  
-bash: /bin/cp: Argument list too long

UNIX find to the rescue…

$ find /var/www -type f ...

Join multiple mpg files into one file

I did not realize how easy it is to join mpeg files with just the windows copy command or unix cat command.

On windows the trick is to copy the files while preserving the binary format. Here is how you would do it -

copy files1.mpg /b + files2.mpg /b ...

SSH aliases

I constantly connect to linux or unix machines using ssh and it can get a little bothersome typing out the IP address repeatedly. Here is the typical syntax to connect to a linux box (random IP address)

ssh username@111.11.11.1

Now imagine typing this again and again ...

Convert AVCHD video to MPEG-2

I have a Canon H100 video camera. This records high definition 1080p videos in a digital video format called AVCHD. It has been a pain to watch these videos. First of all, these videos don’t even play properly on my single core PC. My 3-4 year old PC is ...