I am trying to get the maximum memory usage of my jobs in the cluster. here is my command
$ ls -lrt | awk '($5<800 && $7==2){print}' | grep -Eo ".o[0-9]+" | sed 's/\.o//g' | qacct -j | grep -w "maxvmem" | sort -rn | less
the output of the sed
command won't pipe correctly into the qacct command.
instead of listing the memory usage of just the files I'm looking for, this pipeline shows all the memory usage of all the files in the directory.