I would like to substring a bunch of files that would have various names but would always end with .dct.
For example...
file1.dct
file2.dct
dog1.dct
cat1.dct
I would like to rename them all to
file1
file2
dog1
cat1
These filenames would always change though so I wouldn't be able to just do a mv.
Here is some code that I would need to incorporate into the substring function.
for DCT1 in `ls`;
do
cp $DCT1 $DCT1.dat
done
For example...
file1.dct
file2.dct
dog1.dct
cat1.dct
I would like to rename them all to
file1
file2
dog1
cat1
These filenames would always change though so I wouldn't be able to just do a mv.
Here is some code that I would need to incorporate into the substring function.
for DCT1 in `ls`;
do
cp $DCT1 $DCT1.dat
done