#!/bin/sh
for FILE in *.cvs
do
#Strip off extension
FNAME=`echo $FILE | awk -F . '{ print $1 }'`
mv $FILE ${FNAME}.txt
done
for FILE in *.cvs
do
#Strip off extension
FNAME=`echo $FILE | awk -F . '{ print $1 }'`
mv $FILE ${FNAME}.txt
done
This blog provides some ready-made tips, tricks, tweaks & interview questions-answers on C, C++, Perl, Shell Scripting and UNIX Commands.
No comments :
Post a Comment