cp_onfile.sh
This commit is contained in:
parent
c0bbaa2d1d
commit
a55f02fbc8
1 changed files with 21 additions and 0 deletions
21
cp_onefile.sh
Executable file
21
cp_onefile.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
finds=$(find -name $1)
|
||||
|
||||
set -ex
|
||||
|
||||
i=0
|
||||
for wort in $finds
|
||||
do
|
||||
echo "$wort"
|
||||
|
||||
FILENAME=${wort##*/} # Dateiname ist alles ab dem letzten '/'
|
||||
echo "$FILENAME"
|
||||
|
||||
cp $wort ""$2""$i""-""$FILENAME""
|
||||
i=$(expr ${i} + 1)
|
||||
done
|
||||
|
||||
echo "Fertig!!!"
|
||||
|
||||
#./cp_onefile.sh onefile-final.mp3 /mnt1/
|
Loading…
Reference in a new issue