5

Produces the application specified command to all regular files in a given directory

view full story
linux-howto

http://www.unix.com – write a script in language shell bash, which produces the application specified command to all regular files in a given directory (and all subdirectories) Input parameters: - Defined directory; - Given command. this is my answer, but i'm not sure that it's true? Code: #!/bin/bash echo ' ' if [ "$1" = "" ]   then echo 'insert your directory, please' else   if [ "$2" = "" ]     then echo 'insert your command, please'   else     find $1 -type f | xargs $2   fi fi (HowTos)