Skip to content

Instantly share code, notes, and snippets.

View roma-glushko's full-sized avatar
🦁
Hacking my way to the promised land

Roman Glushko roma-glushko

🦁
Hacking my way to the promised land
View GitHub Profile
@vasilii-b
vasilii-b / cli-find-files-and-run-script-on-then.sh
Created April 20, 2020 14:02
Linux CLI: find filenames and execute a command on the files (without file extension)
#!/bin/bash
# get files without the extension
files=$(find ./ -name "filename*.html" -execdir basename {} .html \;)
for FILENAME in ${files}
do
#some-command-with-filename-as-param ${FILENAME};
done;