Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ls foo:
- 1.aa 2.bb 3.aa 4.cc
- SUFF='aa'
- FILES=`ls -1 *."$SUFF" foo`
- COUNT=`echo $FILES | wc -l`
- echo "$COUNT files have suffix $SUFF, they are: $FILES"
- COUNT=`ls -1 *."$SUFF" foo | wc -l`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement