Showing posts with label CMD. Show all posts
Showing posts with label CMD. Show all posts

Friday, May 20, 2011

Many tools for many jobs

Creating multi page tiffs or pdfs from multiple images is super easy with ImageMagick. After installing it you run it from the command line. "d:\whereveryouwant>convert image1.tif image2.jpg image3.tif mymergedimage.pdf" This simple command appends your multiple images, they can be anywhere, and makes a multi page tif or pdf. There are other options to the command if you want to look it up.

Wednesday, May 11, 2011

Breaking up large files

I have been running into tables that are too big for Excel and needed an easy way to break them into smaller chunks. Unix to the rescue on that. If you have a Unix box like Ubuntu or emulator like Cygwin all you need to do is run the command line code split option filename prefix. Split has two options -l (by line number) or -b (size in bytes, I think).

So I had the giant table in a csv, I ran "split -l 500000 d:\folder\folder\bigfile.csv smallerfile" and my big csv was broken up into 500k line csvs. From there I just opened them in a text editor and copied the header line into each new file.