Search Results

Search: Posts Made By: audrey_flox
5,071
Posted By audrey_flox
it WORKED! thank you! thank you! thank you!!!!
it WORKED! thank you! thank you! thank you!!!!
5,071
Posted By audrey_flox
here it is: :~/desktop] Audrey% cat num3.txt...
here it is:

:~/desktop] Audrey% cat num3.txt
1 3
3 12
12 14
14 21
0 34
34 34
34 40
40 90
5,071
Posted By audrey_flox
i appreciate input, I have tried both, however...
i appreciate input, I have tried both, however nothing is incremented in the finished file, and there are no errors -- what do you think may be the problem??

:~/desktop] Audrey% awk '$1||$2++'...
5,071
Posted By audrey_flox
given I am using tcsh, and I need to use awk-if...
given I am using tcsh, and I need to use awk-if command

Basically, logic is as follows -
If some value in column one is equals to 0, then increment the corresponding value in column 2 by one.
...
5,071
Posted By audrey_flox
thank you for you input. i tried awk...
thank you for you input.
i tried awk '!$1{$2+=1}1', however it gives me a bunch of errors. problem is that can not decipher the syntax of this awk expression for successful debugging. would you...
5,071
Posted By audrey_flox
Unix c-shell - replacing/incrementing values in columns?
2 21
1 12
3 123
4 1234
6 49
0 49
33 212

I need to replace/increment all the values in the 2nd column that correspond to 0 in the first...
Showing results 1 to 6 of 6

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