Subjectively

dd if=/dev/random | kirk > blog

Subjectively header image 4

Entries Tagged as 'Linux'

Split a text file into chunks by line count

January 4th, 2012 · No Comments · Linux

This is a simple splitter for text files by line count. Input File with 4 lines: input.txt this is line 1 this is line 2 this is line 3 this is line 4 ./chunkfile -f input.txt -c 4 -j 2 -p output or cat input.txt | ./chunkfile.sh -c 4 -j 2 -p output -e txt [...]

[Read more →]

Tags:

How to configure vpnc for cisco concentrator with RSA SecurID on ubuntu

August 24th, 2010 · No Comments · Linux

Had to do this for a project at work. After many hours of surfing around, I assembled this method from several other posts. Works very reliably for me.

[Read more →]

Tags:

csv2pg — Load a comma separated values file into postgresql

January 22nd, 2010 · No Comments · Linux, OS X

Here’s a simple wrapper script that I wrote in bash for bulk loading data into PostgreSQL from csv files. Beware, it also does a code page conversion at the end that you may not want. That part should be parameterized, I just haven’t gotten around to it yet. Link to the download is here 1 [...]

[Read more →]

Tags: