mirror of
https://github.com/gladstone-institutes/Bioinformatics-Workshops.git
synced 2025-11-30 09:45:43 -08:00
11 lines
287 B
Bash
11 lines
287 B
Bash
#!/bin/bash
|
|
|
|
# This is a comment. Comments are ignored by the shell.
|
|
|
|
# $1 is the first argument passed to the script
|
|
echo "Counting the genes in $1"
|
|
|
|
# count the unique genes in the file
|
|
u_genes=$(gunzip -c $1 | cut -f 1 | sort -u | wc -l)
|
|
|
|
echo "There are $u_genes unique genes in $1"
|