#If I do this, it doesn't works.
for i in `find / -name "*.sh" -user $user_name 2> /dev/null | tr " " "_"`
do
script_path=`echo "$i" | tr "_" " "`
stat $script_path
done
#I must use "" with the $script_path. Like this, it works.
for i in `find / -name "*.sh" -user $user_name 2> /dev/null | tr " " "_"`
do
script_path=`echo "$i" | tr "_" " "`
stat "$script_path"
done
Two hours lost. I really hate this errors.
OK, and about the second question? Using the first post code, how can I get the result with a ":" between the name of the file and the time of the last modification?