Search Results

Search: Posts Made By: rstone
20,030
Posted By rstone
how to - redirect query results to a variable
How can I send the results of a query to a unix variable. I basically want to run a query then do some logic on the results. Trying to redirect the result into a variable I define in the script. ...
3,560
Posted By rstone
this also works
thanks for reading and responding

[[ -n $(echo $OPTARGS|grep something ) ]] && [[ -n $(echo $OPTARGS|grep something ) ]]; then
3,560
Posted By rstone
help with grep and echo
Can't get this to work. Something is wrong with the systax maybe. :o

if [[ !-z $(echo $foo | grep something) ]] && [[ !-z $(echo $foo | grep something) ]] ; then:

Thanks
4,895
Posted By rstone
check to see if a file is compressed before trying to compress
I simply need to compress all files in a directory that are not already compressed and that are older than 10 days?

I have this so far. I need to add to this so I don't try and compress file...
Showing results 1 to 4 of 4

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