Hi friends ,
i want to change the filename as below
filename=ABC_HYND_JDHD_20130125120345.txt
expected output : ABC_HYND_JDHD_20130125.txt
i have tried using awk but not able to procedd futher. i am trying to do the above in single commad.
echo "ABC_HYND_JDHD_20130125120345.txt" | awk -F"." '{ x=$1;y=$2}'
plz help