Advertisement
ItsMeLucifer

So Skrypty

Dec 2nd, 2019
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/bin/bash
  2. if [ ! $# == 0]
  3. then
  4. if [ "$1" == "/argument" ]
  5. then
  6. echo Argument OK
  7. exit 0
  8. else
  9. echo Nie można rozpoznać Argumentu
  10. exit 2
  11. fi
  12. else
  13. echo Nie podano argumentu wejściowego
  14. exit 1
  15. fi
  16.  
  17. ------------
  18. #!/bin/bash
  19. for ifile in *.*
  20. do
  21. #echo $ifile
  22. name=`echo "$ifile" : cut -d. -f 1`
  23. ext=`echo $ifile : cut -d. -f 2`
  24. new_name=`echo $name' _x'.$ext`
  25. echo $new_name
  26. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement