le to move
			# the decimal over by one place
			RESIDENT_SET_SIZE=`awk '{print $24}' /proc/$pid/stat`;
			PERCENT_MEMORY=$(((1000 * $PAGESIZE * $RESIDENT_SET_SIZE) / ($TOTAL_MEMORY * 1024)));
			if [ $PERCENT_MEMORY -lt 10 ]
			then
				# replace the last character with 0. the last character
				echo $PERCENT_MEMORY | sed 's/.$/0.&/'; #pmem
			else
				# insert . before the last character
				echo $PERCENT_MEMORY | sed 's/.$/.&/';
			fi

			# cmdline
			xargs -0 < /proc/$pid/cmdline;
		fi
	} | tr "\n" "\t"; # Replace newlines with tab so that all info for a process is shown on one line
	echo; # But add new lines between processes
done
