Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Shinsuio
5,794
Posted By Shinsuio
Using mail in awk
I'm having a bit of trouble using the mail command within awk. I'm sending the contents of the body through a pipe like so:
wget -qO- http://cs.actx.edu/~craddock/unix2/lab11 | awk -v oldprice=`cat...
3,915
Posted By Shinsuio
Alright! I've got it figured out :) Thanks for...
Alright! I've got it figured out :) Thanks for your help!
3,915
Posted By Shinsuio
Comparing variables in awk
I'm writing a shellscript that monitors the price of a watch. If the prices changes, it should email me. The body of the email will show the old price and the new price. However when I compare the...
4,694
Posted By Shinsuio
Thanks everyone for your help! I've got it...
Thanks everyone for your help! I've got it working like I want. :)
4,694
Posted By Shinsuio
This works however, all users have the same...
This works however, all users have the same processes as far as I can tell, it does not list the processes just for that user. Thanks for the input, i'm going to play around with this and see if I...
4,694
Posted By Shinsuio
This is what I tried to use: ps -eaf h |awk...
This is what I tried to use:

ps -eaf h |awk -v var="$I" '/var/{print $2 $8 $6}'

And this is the output I got from that..


Nothing like what I need. :(
4,694
Posted By Shinsuio
Help with awk in a loop/shellscript
I am trying to write a shell script using awk which will format the output of the "ps -eaf" command by sorting it by user and then listing all of the processes for each user. Here is an example of...
Showing results 1 to 7 of 7

 

Featured Tech Videos

All times are GMT -4. The time now is 09:36 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy