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:
#!/bin/sh check=$1 result=`cat /path/to/file/file1 | grep $1` if ($result !="") then echo "$check found" exit fi echo "$check not found"
|Thread||Thread Starter||Forum||Replies||Last Post|
|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 08:57 AM|
|Good Bash/Scripting book?||cwhitmore||Programming||7||15th August 2008 02:54 AM|
|Color shell?||giga||FreeBSD General||3||14th August 2008 01:07 AM|
|Shell Script.||bsdnewbie999||Programming||21||15th July 2008 08:54 AM|