I'm trying to enable this
du -s *|awk '{ if ($1 > 3000) print }'
in the shell script, but I want to parameterize 3000. However, since $1 already in use, I'm not sure what to do. It was a complete failure:
size=$1 du -s *|awk '{ if ($1 > $size) print }'
How to pass parameter instead of 3000 in the first script above?
source share