Skip to content

Instantly share code, notes, and snippets.

@joowkim
Last active October 5, 2016 06:14
Show Gist options
  • Save joowkim/8612cb591fa0f27eb6c1650abf0d9f62 to your computer and use it in GitHub Desktop.
Save joowkim/8612cb591fa0f27eb6c1650abf0d9f62 to your computer and use it in GitHub Desktop.
# /usr/bin/bash
Line=0
for item in *.gz
do Line=`zcat $item | wc -l`
echo $item $((Line/4))
done
####### wrapper shell file ######
bash ReadCountFQ.sh > read.log
echo
echo $"FileName" "ReadCount"
cat read.log | sort -k 2 -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment