Bash command help--cut

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This baffles me, but should be very simple.

I have a directory with names of audio files.  I want to convert from one audio format to another.  No problem there. 

I want to create a script to do handle the change of file extension chores.  I came up with this:

#!/bin/bash
FILES=$(ls *.flac | cut -f1 -d\.)
for i in $FILES; do
echo converting: $i

flac -sd $i.flac -o  wav/$i.wav
done



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux