I have a short cygwin script shown as follows
It's supposed to run the file Raven.txt through awk and sort the output to the file concordance.txt. But when I try to run the script through cygwin I getCode:#!/bin/bash cat > cc.awk << ! { for(i=1;i<NF;i++){ list["$i"]=list["$i"] NR "." i } } END {for(i in list){ print i "=" list[i] } } ! awk -f cc.awk < Raven.txt | sort > concordance.txt rm cc.awk
The file redirection commands work great in the shell itself, but once I place them in the shell commands they don't do anything.Code:$ ./concord.sh : No such file or directoryrdance.txt



LinkBack URL
About LinkBacks


