Search Results

Search: Posts Made By: balajesuri
14,726
Posted By balajesuri
Search on the internet for "bash tutorials"...
Search on the internet for "bash tutorials" (without the quotes)
14,726
Posted By balajesuri
1) Yes 2) Yes 3) `echo $mPref | egrep -q...
1) Yes
2) Yes
3) `echo $mPref | egrep -q "\.[0-9]{10}:[0-9]{2}:[0-9]{2}"` will not neglect current file. The skipping part is done by next line "[ $? -eq 0 ] && continue" which means, if the exit...
14,726
Posted By balajesuri
--> Value in $mPref is echo'd to egrep. -->...
--> Value in $mPref is echo'd to egrep.
--> egrep stands for extended grep (look for manpages of grep option -E)
--> -q option is to suppress the output.. used to silence grep even when a match is...
14,726
Posted By balajesuri
#! /bin/bash cd /home/user01/exercise ...
#! /bin/bash
cd /home/user01/exercise

exercise=/home/user01/exercise

mDate=$(date +%Y%m%d%H:%M:%S)
for mFName in $exercise/*.log
do
mPref=${mFName%.log}
echo $mPref | egrep -q...
Showing results 1 to 4 of 4

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