Store PATH as a variable in centos 7 script
1
vote
3
answers
395
views
I want to write a script that allows the user to enter a specific file path to use this variable with the find command
I tried this but it seems that my syntax is not right
enter file path : $PATH
find $PATH -size +1M -exec rm {}\;
and what if I want the user also to enter the size should I use
find $userpath -size $size -exec rm {}\;
or something else
Asked by karam albousy
(15 rep)
May 18, 2020, 02:39 PM
Last activity: May 18, 2020, 06:00 PM
Last activity: May 18, 2020, 06:00 PM