I am stuck at end of my process.. I got the following file (input). And I want to filter it, checking from the column 2 to the end of the file.
The condition is if in any column from cl2 to the end exist value 3, not filter, but if there is not value 3, should print all the row(output desired).
I have a few to questions pose in response first:-
What have you tried so far?
What output/errors do you get?
What OS and version are you using?
What are your preferred tools? (C, shell, perl, awk, etc.)
What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly, What have you tried so far?
There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.
Initial thoughts are that you would need an expression to ignore the first field then catch a 3. Would 23 or 32 be acceptable to match as effectively text, or is it the value 3 that is important here?
Robin
We're all here to learn and getting the relevant information will help us all.
prefer too is awk, the value 3 is the import here has this validated the row.
the input I show in my request, is from other process, therefore for the moment I dont have idea how to solve the problem. nothing try yet. I am using debian7
@jiam912:
You have 277 posts in the forum so I assume you had a lot of question which people will have answered you. Next time, please provide a try, no matter how wrong it will be but just to show us that you did a little something on your own before posting here