Search Results

Search: Posts Made By: Pezmc
2,910
Posted By Pezmc
Glad I got some things right I've now...
Glad I got some things right

I've now updated the code to:
#!/bin/bash
#set -v
#set -x

case $# in
1)
echo Searching for $1 in '*';
find . -type f 2>/dev/null | xargs grep "$1" -sl...
2,910
Posted By Pezmc
Shell Script Find in File
Right, noob to shell scripting, playing a round for practice, wrote the following but it doesn't seem to work as expected, how could I fix/improve this script?

#!/bin/bash
#set -v
#set -x
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy