I need to write a bash script that receives any sequence of nucleotides and print all positions of the T nucleotides.
I did the following:
'vim nucleotide.sh' inside the script
#!/bin/bash
$@
cat $@ | while read line;do echo $line | grep -i t;done
But when I ran the script on new.dat sequence file
$ bash nucleotide.sh new.dat
it displays all sequences without marking T position, however when I run cat $@ | while read line;do echo $line | grep -i t;done
outside the script, it displays the sequences with T colored in red.
Any suggestions, please