I am trying to include this
du -s *|awk '{ if ($1 > 3000) print }'
in a shell script, but I want to parameterize the 3000. However, since the $1
is already being used, I'm not sure what to do. This was a total failure:
size=$1
du -s *|awk '{ if ($1 > $size) print }'
How can I pass a parameter in place of 3000 in the first script above?