Sunday, July 28, 2019

Remove the dates from FileName extension


echo 'filename.txt_09232016' | grep -o '^.*\.txt'
Output: filename.txt

No comments:

Post a Comment