I am working on pulling a value from a tab delimited file. Need to pull the value from the 8th tab position of a file, so it can be used as the file name for the file.
This is what I have,
FILELIST=`ls -1 2> /dev/null`
for file in $FILELIST
case $file in
WSC_862*.tsv ) newfilename = '$file | cut -d c -f8'
mv $file $destination_dir/newfilename.$DateTimeStamp;;