I am trying to print a sum in the middle of a line. My script prompts for a user name and then pulls a total number of processes and a total of time for that user from a file.
I want to print a sentence with the totals in the middle of the sentence.
awk I can get the totals for processes and minutes but am unable to print the results of an equation in the middle of a sentence. My equation's result shows up after the sentence.
I feel like I need to use an anchor like in HTML. I am using PuTTY.
oliver|Login|100 smith|Login|20 oliver|Time|25 oliver|Time|25 smith|Time|20 Anne|Login|100 Example: User name? oliver oliver has run 3 processes for a total of 150 minutes case $choice" in 1) echo -n "User name?" read username echo "$username has run processes for a total of minutes" ;;
I would like to get a total for processes and minutes for the specific user name entered. Then insert those numbers into the sentence where they belong.