Operating System - HP-UX
1752754 Members
4867 Online
108789 Solutions
New Discussion юеВ

Re: Can you pass vatiables to awk?

 
Sridhar Bhaskarla
Honored Contributor

Re: Can you pass vatiables to awk?

Hi Jamie,

Your time variable should get passed correctly but your 'test' conditions may produce unexpected results as the time variable is treated as 'text' and using <,> operators on it may not give what you expect.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: Can you pass vatiables to awk?

...and just to confirm that your time variable is passed correctly, put a "print time" statement in your awk script.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jamie Collins
Advisor

Re: Can you pass vatiables to awk?

I see now that the variable is getting passed corectly.. my error is now in my script. I'm going to keep playing...
Thanks
Muthukumar_5
Honored Contributor

Re: Can you pass vatiables to awk?

Hai Jamie,

Started to play with awk right now. If you get your problem solved, treat responders with points to get more informations in near future and get good interaction.

Best wishes.
Muthukumar.
Easy to suggest when don't know about the problem!