New to linux and bash, with ls command I can list file names in a directory. My directory contains text files. I want to pipe the listed file names to some other command that would remove the file extensions, How can I achieve that
ls
filename1.txt
filename2.txt
to
ls | somecommand
filename1
filename2
any help would be appreciated
Thanks