hey all linux gurus, I have a little technical difficulties.
here is what i have
[linux]$ ps aux | grep resin-3.0.19/log | grep -v grep | awk '{ print $6 }'
2262812
2214548
[linux]$ ps aux | grep resin-3.0.19/log | grep -v grep | head -1 | awk '{ print $6 }'
2262812
[linux]$ ps aux | grep resin-3.0.19/log | grep -v grep | tail -1 | awk '{ print $6 }'
2214548
How do I print a value with head+tail? I want the value of 2262812+2214548.
Is there a way I can print that out in one command line? Say print $6.row1+row2?
here is what i have
[linux]$ ps aux | grep resin-3.0.19/log | grep -v grep | awk '{ print $6 }'
2262812
2214548
[linux]$ ps aux | grep resin-3.0.19/log | grep -v grep | head -1 | awk '{ print $6 }'
2262812
[linux]$ ps aux | grep resin-3.0.19/log | grep -v grep | tail -1 | awk '{ print $6 }'
2214548
How do I print a value with head+tail? I want the value of 2262812+2214548.
Is there a way I can print that out in one command line? Say print $6.row1+row2?