Tag: head
Create Random Password
July 2, 2009
Use this command to create a random password < /dev/urandom tr -dc A-Za-z0-9_ | head -c8 Also see…
First Two Lines
April 13, 2008
View first two lines of a file head -2 file tail -2 file # for last 2 lines
Pid Command
December 14, 2007
Create a command that will return the pid of the given command string.. #!/bin/sh ps aux|grep 1|head -n1|awk ‘{print2}’
Recent Comments