Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. while read j
  2. do
  3. echo "Pattern to search is:- $j"
  4. find / -name "*$j*" |
  5. while read k
  6. do
  7. echo "File found is:- $k"
  8. owner=$(ls -ld "$k" | awk '{print $3}')
  9. echo "Owner is:- $owner"
  10. done
  11. done < searchstring.out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement