A small modification of Stéphane Chazelas's answer.
find . -type f -exec bash -c 'echo $0; head $0;' {} \;
This shows how the script you give to bash -c
takes the first argument.
A small modification of Stéphane Chazelas's answer.
find . -type f -exec bash -c 'echo $0; head $0;' {} \;
This shows how the script you give to bash -c
takes the first argument.