In Solaris, how do I get the value in the first column corresponding to a data in a particular column and then use that data?

1

Explanation:

ABC    X    X    X    X    X    sync    sync
BAC    X    X    X    X    X    sync    unsync
DSA    X    X    X    X    X    sync    NA
ERF    X    X    X    X    X    sync    sync
TRY    X    X    X    X    X    unsync  unsync
RET    X    X    X    X    X    unsync  NA
PET    X    X    X    X    X    NA      unsync
TER    X    X    X    X    X    NA      NA  

I want to filter out the sync field in the 7th column, get its corresponding data from the 1st column and use this data as an input to a command, say unsync.

sayan roy

Posted 2012-11-22T11:48:37.710

Reputation: 11

No answers