What I am trying to do is get a number of directory files in my current directory.
Here is a copy of my script and output
BEGIN {
print "The following are directory files"
}
{
system( "ls-l " )
}
END {
print "There were " NR " directories in this list."
}
What hapens is the BEGIN prints out the sstatement. Then the script is waiting for some input and I have to doa CTR-D to stop the script from running
Thanks for your help
Here is a copy of my script and output
BEGIN {
print "The following are directory files"
}
{
system( "ls-l " )
}
END {
print "There were " NR " directories in this list."
}
What hapens is the BEGIN prints out the sstatement. Then the script is waiting for some input and I have to doa CTR-D to stop the script from running
Thanks for your help