[ncl-talk] problem about knowing the files number
    LIU Chang 
    cliucv at connect.ust.hk
       
    Tue Nov 30 04:40:40 MST 2021
    
    
  
Dear NCL,
I want to know how many files in my one dir based on NCL.
I have known that based on shell, typing  a=`ls diri -l | grep "^-" | wc -l` , it will echo a and a is equal to files number.
However, when I tried to add the sentence into my ncl script, it showed that a=`, fatal:Syntax Error in block, block not executed.
It will be really appreciated if you could give me some suggestions to solve the problem.
Best regards,
Chang LIU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20211130/b8a676e3/attachment.html>
    
    
More information about the ncl-talk
mailing list