Search Results

Search: Posts Made By: becket
Forum: Red Hat 11-15-2010
2,566
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,472
Posted By becket
Sorry :) My misunderstanding
Sorry :) My misunderstanding
3,472
Posted By becket
@danmero : this is exactly what my command does !...
@danmero : this is exactly what my command does !

( b1b && d1d ) && ( a1a || c1c ) ...
3,472
Posted By becket
find ./ \( -name "*b1b*" -name "*d1d*" \) -a ...
find ./ \( -name "*b1b*" -name "*d1d*" \) -a \( -name "*a1a" -o -name "*c1c*" \)
1,530
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,841
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,983
Posted By becket
^.*stringtobematched.*$ And what happens...
^.*stringtobematched.*$


And what happens with this ?
15,515
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,632
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,168
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,124
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,878
Posted By becket
same idea here :)
same idea here :)
Forum: Red Hat 01-14-2007
19,693
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,450
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,450
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,450
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,856
Posted By becket
within the find find blablabla ... -not...
within the find

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

-not -newer
12,643
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,690
Posted By becket
yes, but i've edited it
yes, but i've edited it
9,690
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,329
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,394
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,804
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,432
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 03:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy