I am trying to find all files which size is higher than $1 (parameter) and zip them using a shell script.
#!/bin/bash
find . -type f -size +$1c = $files
tar -xf $files
But I think this isn't the right solution.
I am trying to find all files which size is higher than $1 (parameter) and zip them using a shell script.
#!/bin/bash
find . -type f -size +$1c = $files
tar -xf $files
But I think this isn't the right solution.
Assuming your
find
command works the way you want you just need to change your bash syntax a bit. Also your tar command is extracting-x
.