title: Check the main memory usage by a linux command
body: <p>Is there any command that I could use to check the memory usage for a single linux command? For instance I have a script file (test.sh) which will read and extract word from a 100mb text file. How could I know how much memory does this command (./test.sh input_file.txt) would take?
  Thanks for the advises there!!</p>