How can I remove a specific filename extension in the filename in a directory using sed. Like for example I have a files in a directory,
file1.txt
file2.txt
file3.cpp
Then I want to remove the filename extension of a file with .txt extension, so the result is,
file1
file2
file3.cpp
Thanks!