Search Results

Search: Posts Made By: oddo
3,561
Posted By oddo
it is doing nothing :o
it is doing nothing :o
3,561
Posted By oddo
aaaah here I go again :( VAR_1="123456" ...
aaaah here I go again :(


VAR_1="123456"
VAR_2="XXXXXX"
/usr/xpg4/bin/awk '/$VAR_1/ && !flag++{print " $VAR_2";next}1' file >output
put me result:

/usr/xpg4/bin/awk: /$VAR_1/: unknown...
3,561
Posted By oddo
THAAAAAAAAAAAANKS A LOT :) awk way solve my...
THAAAAAAAAAAAANKS A LOT :)

awk way solve my problem :)

thanks again a lot :) you saved lot of my neurons :D

best regards :)
3,561
Posted By oddo
hm under solaris it is still not working... still...
hm under solaris it is still not working... still the same mistake :(

I tryied it under debian linux and there it is running but, script will just put in stdout XXXXXX not in the file...

any...
3,561
Posted By oddo
Thanks, but RESULT: awk: syntax error near line 1...
Thanks, but RESULT: awk: syntax error near line 1

maybe I should mentioned that I`m working under Solaris (SunOS 5.9)... :)
3,561
Posted By oddo
sed or awk help or smth...
Hi all,

I will be glad if you can help me.

I have this kind of document:

$cat mistake_file
546488
123456
546887
132548
123456
546887
324645
123456
123456

and I want to replace...
Showing results 1 to 6 of 6

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