Skip to main content
added 1 character in body
Source Link
Stéphane Chazelas
  • 586.2k
  • 96
  • 1.1k
  • 1.7k

You could do all in one command.

find /path/to -type f -execdir bash -c 'printf "%s\n" "$'"${@%.*}'"'"' _bash {} + 

You could do all in one command.

find /path/to -type f -execdir bash -c 'printf "%s\n" "$'{@%.*}'"' _ {} + 

You could do all in one command.

find /path/to -type f -execdir bash -c 'printf "%s\n" "${@%.*}"' bash {} + 
Source Link
αғsнιη
  • 41.9k
  • 17
  • 75
  • 118

You could do all in one command.

find /path/to -type f -execdir bash -c 'printf "%s\n" "$'{@%.*}'"' _ {} +