|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
Shell Scripting with BSD
Anyone know of a good resource to read up on shell scripting?
I'm working on a script that take a single argument and checks various files for the presence of that expression: eg. ./script.sh filename so far I have: Code:
#!/bin/sh check=$1 result=`cat /path/to/file/file1 | grep $1` if ($result !="") then echo "$check found" exit fi echo "$check not found" TIA |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Good Bash/Scripting book? | cwhitmore | Programming | 10 | 22nd December 2017 03:59 PM |
Shell scripting resources | J65nko | Programming | 0 | 23rd December 2008 09:57 PM |
ports config and makefile scripting | boincv | FreeBSD Ports and Packages | 6 | 1st October 2008 07:57 AM |
Color shell? | giga | FreeBSD General | 3 | 14th August 2008 12:07 AM |
Shell Script. | bsdnewbie999 | Programming | 21 | 15th July 2008 07:54 AM |