Guest User

Untitled

a guest
Oct 20th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. ssh server.com<<CODE
  2. TARGET="target dir"
  3. COUNT= $( ls /foo/bar/$TARGET | wc -l )
  4. echo $COUNT > count.txt
  5. then
  6. fi
  7. CODE
Add Comment
Please, Sign In to add comment