Search Results

Search: Posts Made By: ensameer
1,870
Posted By Scrutinizer
This should work if grep -q pattern file_name ...
This should work
if grep -q pattern file_name
then
fi

or
if grep pattern file_name >/dev/null 2>&1
then
fi
Forum: Red Hat 07-10-2010
5,952
Posted By Scrutinizer
If you look at the permissions of the passwd...
If you look at the permissions of the passwd command (I'll just list the one on my system):
ls -l $(which passwd)
-rwsr-xr-x 1 root root 37140 2010-01-26 18:09 /usr/bin/passwd

you'll notice...
8,412
Posted By pludi
Because gzip saves, into the file, the...
Because gzip saves, into the file, the modification time of the file, as well as the original file name if possible:$ echo "TestTestTest" > test1.txt
$ stat test1.txt
File: `test1.txt'
Size:...
Showing results 1 to 3 of 3

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