I’m trying to write a scenario which will input a number and then find all the files which size if bigger than this number.
So far I’ve got this:
read $size
find . -size "+{$size}c"
The above code doesn’t work. What should I do instead?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do something like this to find files bigger than your number in the variable –
You can also do something like this –
You can modify
ls -lto provide path of a particular folder and add more options to doing search recursively.