Search Results

Search: Posts Made By: ts89490
5,082
Posted By ts89490
:) Thanks RudiC I always love to see the xargs...
:) Thanks RudiC
I always love to see the xargs magic

Thanks Don. I am using your suggestion.
5,082
Posted By ts89490
thanks Don Parallel processing is not an issue...
thanks Don
Parallel processing is not an issue here as I am doing it on a cluster.

The string to match appears invariably in third column but the order of variables NRHITS and PVALUE in third...
5,082
Posted By ts89490
You are right. The command works but how can i...
You are right. The command works but how can i use it with xargs. I have multiple files to process and i want the separate output files for each.
5,082
Posted By ts89490
Thanks a lot. Although tThe command works,...
Thanks a lot.
Although tThe command works, individual output files are empty.No error message.

ls *.txt |xargs -I {} -P15 sh -c "awk 'match ($0, /PVALUE=[0-9.]*/) && substr($0, RSTART+7,...
5,082
Posted By ts89490
Hi Don The following is the file sample. ...
Hi Don
The following is the file sample.



I have edited the command as following:

ls *.txt | xargs -I {} -P15 sh -c awk {if [/PVALUE=(\d+)/){if ($1 >=0.05){print $_}}]}' {} >{}.fail

The...
5,082
Posted By ts89490
Should it be like this ? It still gives me an...
Should it be like this ? It still gives me an error message
ls *.txt| xargs -I @ -P15 sh -c "awk {if [/PVALUE=(\d+)/)]{if ($1 >=0.05){print $_}}}' @ - >@.fail"
5,082
Posted By ts89490
Xargs, awk, match, if greater - as a one-liner
Hi I have multiple files for which I want to use awk for the following:

Read each line in each file- if any of the columns match "PVALUE=" followed by the number, then print the line in case the...
Showing results 1 to 7 of 7

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