Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ ! $# == 0]
- then
- if [ "$1" == "/argument" ]
- then
- echo Argument OK
- exit 0
- else
- echo Nie można rozpoznać Argumentu
- exit 2
- fi
- else
- echo Nie podano argumentu wejściowego
- exit 1
- fi
- ------------
- #!/bin/bash
- for ifile in *.*
- do
- #echo $ifile
- name=`echo "$ifile" : cut -d. -f 1`
- ext=`echo $ifile : cut -d. -f 2`
- new_name=`echo $name' _x'.$ext`
- echo $new_name
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement