Search Results

Search: Posts Made By: becket
Forum: Red Hat 11-15-2010
2,767
Posted By becket
The default configuration of sudo allows members...
The default configuration of sudo allows members of whell group sudo-ing without password.
3,552
Posted By becket
Sorry :) My misunderstanding
Sorry :) My misunderstanding
3,552
Posted By becket
@danmero : this is exactly what my command does !...
@danmero : this is exactly what my command does !

( b1b && d1d ) && ( a1a || c1c ) ...
3,552
Posted By becket
find ./ \( -name "*b1b*" -name "*d1d*" \) -a ...
find ./ \( -name "*b1b*" -name "*d1d*" \) -a \( -name "*a1a" -o -name "*c1c*" \)
1,546
Posted By becket
With AWK awk '{ if ( $0 ~ /PATTERN/ ) print...
With AWK

awk '{ if ( $0 ~ /PATTERN/ ) print $0 ; else print "NOT FOUND" } ' file.txt


With SED

sed -n -e '/PATTERN/!s/.*/NOT FOUND/gp' -e '/PATTERN/p' file.txt
Forum: IP Networking 11-08-2010
1,857
Posted By becket
with iproute2, you can deal that kind of...
with iproute2, you can deal that kind of topology. It's not perfect but it works

Routing for multiple uplinks/providers (http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.multiple-links.html)
1,991
Posted By becket
^.*stringtobematched.*$ And what happens...
^.*stringtobematched.*$


And what happens with this ?
15,613
Posted By becket
date.sh #!/bin/sh echo $1 | awk -f...
date.sh

#!/bin/sh
echo $1 | awk -f date.awk


date.awk

BEGIN{
FS="."
}
{
if ( $1 > 0 && $1 <= 31 && $2 > 0 && $2 <= 12 && $3 > 0 && length($3) == 4 ) {
print "DATE FORMAT OK"
}
...
Forum: HP-UX 06-24-2007
2,642
Posted By becket
i don't think you really need to sort ...
i don't think you really need to sort


cat file.txt |sed -n '/[0-9]* [0-9]*%/p'
4,238
Posted By becket
if [ $line != $( echo $line |sed...
if [ $line != $( echo $line |sed s/'ilvs_trace[0-2]\{0,2\}\.[0-9]\{0,4\}'/REGEXP/ ]
then
echo "File Found"
fi
11,139
Posted By becket
i don't know witch unix flavor you use but with...
i don't know witch unix flavor you use but with linux you can also use

kill $( pidof firefox-bin )
1,902
Posted By becket
same idea here :)
same idea here :)
Forum: Red Hat 01-14-2007
20,117
Posted By becket
First of all, your trying to uinstall file.rpm...
First of all, your trying to uinstall file.rpm instead of package

I don't have any linux rpm distribution under hand , but i think the better idea is

1 - List the package of mysql install
...
3,503
Posted By becket
vgersh99 : are you praticing for some Obfuscated...
vgersh99 : are you praticing for some Obfuscated code Competition ? Because this is great stuff :) You made me jump to my books ... yelling

For not this post be a waste of time, i'll give a...
3,503
Posted By becket
in this case, the line witch doesn't match the...
in this case, the line witch doesn't match the regexp won't be printed
3,503
Posted By becket
An another way to do it ( still with awk ) ...
An another way to do it ( still with awk )


cat FILE |awk ' { if( $0 ~ "(MOVISTAR_TX|CREALEGRO_TX)" )
{
sub("^1","2")
}
print $0
}' > NEWFILE
2,879
Posted By becket
within the find find blablabla ... -not...
within the find

find blablabla ... -not -newer blablabla
2,879
Posted By becket
Try -not -newer
Try

-not -newer
12,669
Posted By becket
if [ $var != ${var/john//} } then echo "John...
if [ $var != ${var/john//} }
then echo "John is inside :D "
else echo " no ( long ) john here "
fi
9,755
Posted By becket
yes, but i've edited it
yes, but i've edited it
9,755
Posted By becket
Don't care about what i've said ... i've misred...
Don't care about what i've said ... i've misred the original post
1,332
Posted By becket
if you use bash you can also do a=1 ...
if you use bash you can also do


a=1
....
...
let a=a+1
12,449
Posted By becket
Vino : i've test your sed command and it works...
Vino : i've test your sed command and it works very well
66,899
Posted By becket
symbolic link or hard link ? for symbolic...
symbolic link or hard link ?

for symbolic link ou can test -L file
for hard link you can test $( stat -c %h ) -ge 1
22,530
Posted By becket
aju_kup: your command, i know for sure, works...
aju_kup: your command, i know for sure, works but you launch 3 commands doing approximatively the same job taking 3x more time than a unique find.


this ( from sharifhere ) is a lot better
...
Showing results 1 to 25 of 44

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