I'm a beginner in Unix platform. I'm trying to rank file based on the sign of the log2FoldChange multiplied by the inverse of the pvalue.input file =   Gene  baseMean    log2FoldChange  lfcSE   stat    pvalue  padjABCA13  5103.080785 2.543103478 0.438305758 5.802121998 6.55E-09    1.93E-07ABCA3   18680.58642 -1.553638598    0.460873937 -3.371070638    0.000748767 0.003440638ABCC1   25566.61312 1.835232419 0.297965004 6.15922137  7.31E-10    2.95E-08ABCC2   200.351079  1.753257763 0.47254475  3.710247045 0.000207057 0.001190344ABCC5   18904.8957  2.982575702 0.304484366 9.795497012 1.18E-22    7.21E-20ABCC6   1071.195985 -1.858889875    0.388613973 -4.783384034    1.72E-06    2.16E-05ABCC6P1 121.4678884 -2.319956403    0.367695124 -6.309456544    2.80E-10    1.26E-08ABCC6P2 154.2820927 -2.402177208    0.393773373 -6.100405397    1.06E-09    4.06E-08ABCC8   71.94941328 -1.651659127    0.494666609 -3.338933936    0.000841006 0.003782183#!/bin/bashDGE=$1RNK=`echo $DGE | sed 's/.txt/.rnk/'`sed 1d $DGE \| sort -k6g \| awk '!arr[$1]++' \| awk '{OFS=\t}{ if ($3>0) printf %s\t%4.3e\n, $1, 1/$7 ;else printf %s\t%4.3e\n, $1, -1/$7 }' \| sort -k2gr > $RNKBut im getting an empty file as output
bash script to rank files based on sorting the column
bash;shell