Hello All,

I am new to SGE and have a problem understanding probably a very basic task.
I am reading an example that runs a job array over a set of samples that their 
names are in a text file (e.g., samples.txt).

Below are the two lines that suppose to link the sample names to task ID. But 
can you please tell how the number of records NR
is used in this awk command to do this task?

# sample manifest - text file with one sample ID per line
MANIFEST=/path/to/samples.txt
 
# dereference task ID to sample ID
SAMPLE=`awk "NR==${SGE_TASK_ID}" ${MANIFEST}`

Thank you very much for your help in advance.

Regards,

NF
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users
  • [gridengine users] Roo... Rahnamay Farnoud, Noushin/Sloan-Kettering Institute

Reply via email to