Computing.Net > Forums > Solaris > Can I use awk in a perl script?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Can I use awk in a perl script?

Reply to Message Icon

Name: skat2004
Date: November 24, 2004 at 03:28:13 Pacific
OS: Solaris
CPU/Ram: Sparc
Comment:


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




Sponsored Link
Ads by Google

Response Number 1
Name: skat2004
Date: November 24, 2004 at 04:05:28 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Can I use awk in a perl script?

Can I use JMF in X86 Solaris 8?? www.computing.net/answers/solaris/can-i-use-jmf-in-x86-solaris-8/2137.html

How I use MSN in Solaris 8 www.computing.net/answers/solaris/how-i-use-msn-in-solaris-8/2858.html

shell script to check a dynamic ip www.computing.net/answers/solaris/shell-script-to-check-a-dynamic-ip/4287.html