Search Results

Search: Posts Made By: aaiaz
10,686
Posted By aaiaz
Thanks man for the details ...I had understand...
Thanks man for the details ...I had understand now.

:b::b::b:
10,686
Posted By aaiaz
another approach:- nawk 'a[$3$4]++ { $3 -=...
another approach:-

nawk 'a[$3$4]++ { $3 -= 0.1}1' test

but kindly radoulov in your solution
awk '($3 -= 0.1 * c[$3,$4]++)||1' infile

why you used multiplication instead of
awk '($3 -=...
42,177
Posted By aaiaz
radoulov in your code below kindly what is the...
radoulov in your code below kindly what is the "x" for?



awk '$0~"^"(NR==1?"\"":x "http:")&&$0=RS$0RS' RS=\"
42,177
Posted By aaiaz
Hay:):):) thanks radoulov both codes working...
Hay:):):) thanks radoulov both codes working great..regarding perl my machine is customized & I am not the owner of it just simple user.

:D:D:D:b::b::b::b:
42,177
Posted By aaiaz
Scrutinizer it is not working:- bash-3.00$...
Scrutinizer it is not working:-

bash-3.00$ echo '"http://a.b.c" blablabla "http://b.b.f"' | sed 's|\"http://[^\"]*\"|&\n|' | sed -n 's|.*\("http://[^"]*"\).*|\1|p'

o/p
"http://b.b.f"

...
42,177
Posted By aaiaz
ok thanks man :b::):):):) ---------- Post...
ok thanks man
:b::):):):)

---------- Post updated at 04:31 AM ---------- Previous update was at 04:30 AM ----------

but how can I achieve this using sed or awk. it still not direct reach....
42,177
Posted By aaiaz
-o option is not supported in grep command in my...
-o option is not supported in grep command in my OS "SUN Solaries".
42,177
Posted By aaiaz
Scrutinizer you are wrong because see below:- ...
Scrutinizer you are wrong because see below:-
Iam using SunOS server2 5.10 Generic_118833-36 sun4u sparc SUNW,Netra-210


bash-3.00$ echo '"http://abc" blablabla "http://cvd"' | grep...
42,177
Posted By aaiaz
You may use egrep or grep as well and result here...
You may use egrep or grep as well and result here will be the same.

egrep ""http//.*""
or
egrep "\"http//.*\""
or
egrep '"http//.*"'



:D:p:D:):D
2,704
Posted By aaiaz
you can use gawk as well it is easy using it. ...
you can use gawk as well it is easy using it.

gawk '(substr($0,9,9)=="mueller02") {print}' file.txt
Showing results 1 to 10 of 10

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