Find file name only in terminal

Solved
bibiche13520 Posted messages 32 Status Membre -  
bibiche13520 Posted messages 32 Status Membre -
Hello,

In July, I will participate in the swimming pool (1-month admission test) of school 42 in Paris (a prestigious programming school). A colleague of mine is already in the school and sent me the exercises he had during his swimming pool. One of the exercises asks us to:

Write a command line that searches in the current directory and all
its subdirectories for all files whose names end with ".sh" (without the
quotes) and only displays their names, without the .sh.

I am at the last step, meaning I have managed to display the files that end in .sh, I have succeeded in removing the .sh, but I cannot get to only show the file name; the directory always comes with it.

Can you please help me to make the directory disappear?

2 réponses

zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention   6 500
 
Hi,

Show us what you have done already.

--
Zen my nuggets ;-)
Make a gesture for the environment, close your windows and adopt a penguin. <('')
0