Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm just learning perl and I have a question.
Can I use awk in a perl script?
I tried this
@s_users=`/usr/bin/last | head |awk {'print $1'}"` ;
but it didn't work.
The result is just the commans last|head
Thanks

I found my mistake.
I had forgotten the \
@s_users=`/usr/bin/last | head |awk {'print \$1'}"` ;
No it's correct

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |