Guest User

Untitled

a guest
Apr 19th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. for program_full in `find . -name "*.rpm" | sort`
  4. do
  5. line=$(basename $program_full)
  6.  
  7. a=${line%-*}; b=${a%-*};
  8. echo $b
  9. done
Add Comment
Please, Sign In to add comment