Search Results

Search: Posts Made By: r4v3n
7,288
Posted By Scrutinizer
And further to: awk...
And further to:
awk '/^http:\/\/[0-9]{1,3}(\.[0-9]{1,3}){3}(:[0-9]{1,5})?\//'
1,234
Posted By balajesuri
perl -pe '/\|$/&&s/\n$//' inputfile/\|$/ -->...
perl -pe '/\|$/&&s/\n$//' inputfile/\|$/ --> Searches for | symbol at the end of line
&& --> logical 'and' operator.
s/\n$// --> Replace \n at the end with null
2,359
Posted By rdcwayx
awk -F \/ '{a[$3]++;b[$3]=$0} END{for (i in...
awk -F \/ '{a[$3]++;b[$3]=$0}
END{for (i in a)
if (a[i]>1)
{ split(b[i],x,"/")
print x[1] "//" x[3] "/"}
else...
2,670
Posted By alister
No need for a loop or for re-reading inctrl.txt...
No need for a loop or for re-reading inctrl.txt over and over and over again. Just tell grep to read the text to match from registry.txt with the -f switch. And since you aren't using regular...
3,942
Posted By ddreggors
nice awk solution but OP asked for sed: ...
nice awk solution but OP asked for sed:


echo "www.google.com/sample.log" |sed -r 's/(.*)\/(.*)/\1\/\2 \1 \2/g'
Explaination:

Breaking this sed line down we have 4 main parts.

1. The sed...
11,774
Posted By maverick72
This should do the trick. #!/bin/bash ...
This should do the trick.

#!/bin/bash

CURRENT_TIME=$(date +%H%M)

if [ $CURRENT_TIME -lt 1800 ]
then
echo "Continue"
else
echo "Quit"
fi
Showing results 1 to 6 of 6

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