Evaluating the output of a program as an integer
pI'm trying to create a script that will evaluate the output of a command
line, and then print if it's larger than 200./p pThe program
code/exc/list/code will count the number of stories I have in a directory
as an expression. For example:/p precode/exc/list q show.today1.rundown
/code/pre pwill return 161 if there are 161 stories in the today1
rundown./p pI have to figure this for 23 different directories. If the
number of stories is greater than 200, I need it to print it to a temp
file (code/tmp/StoryCount.$date/code)./p pWhat's the best method to handle
this comparison?/p
No comments:
Post a Comment