19Oct/15

Testing Samba / SMB / CIFS Connections with Linux

smbclient is the command that we want to use for testing

First get the share names with (I use -N to omit the password, most often you dont need a passwordRead More…

06Oct/15

Searching Source Code with GREP or ACK

Articles to check out: * https://www.digitalocean.com/community/tutorials/how-to-install-and-use-ack-a-grep-replacement-for-developers-on-ubuntu-14-04 * http://beyondgrep.com/why-ack/ * http://readwrite.com/2010/11/10/how-to-search-your-source-with GREP (rinIE) or EGREP (rinI) the all round search utility

NOTE: the grep article recommend -inIEr, but thats hard to remember,Read More…

30Sep/15

Organize AXIS Camera captured dated images into dated folders

My AXIS camera  (AXIS M1011-W Network Camera) captures files into files that look like this:

There are thousands of these images. The issue with lots of files of any type isRead More…

30Sep/15

Sed – extract Nth number from each random line

Source: http://unix.stackexchange.com/questions/84922/extract-a-part-of-one-line-from-a-file-with-sed Imagine you have a text:

How do we extract the first number (number of animal) and the second number (number of singers). Notice that there is no pattern. so weRead More…