The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
UNIX for Dummies Questions & Answers
help me
Tags
beginners
Thread Tools
Search this Thread
Top Forums
UNIX for Dummies Questions & Answers
help me
#
1
09-24-2008
sankar_1209
Registered User
9,
0
Join Date: Jul 2008
Last Activity: 22 July 2009, 3:06 AM EDT
Location: india
Posts: 9
Thanks Given: 0
Thanked 0 Times in 0 Posts
help me
hi sir/madam
pls help me
how to read a word in awk program
sankar_1209
View Public Profile for sankar_1209
Find all posts by sankar_1209
#
2
09-24-2008
subhendu81
Registered User
82,
0
Join Date: Sep 2008
Last Activity: 26 November 2016, 1:42 PM EST
Location: pune
Posts: 82
Thanks Given: 0
Thanked 0 Times in 0 Posts
plz make ur quesry clear...so that we may able to ans ur query..
subhendu81
View Public Profile for subhendu81
Find all posts by subhendu81
#
3
09-24-2008
yogi_raj_143
Registered User
16,
0
Join Date: Mar 2007
Last Activity: 28 May 2009, 1:21 AM EDT
Posts: 16
Thanks Given: 0
Thanked 0 Times in 0 Posts
puts some sample input and required output
yogi_raj_143
View Public Profile for yogi_raj_143
Find all posts by yogi_raj_143
#
4
09-24-2008
sankar_1209
Registered User
9,
0
Join Date: Jul 2008
Last Activity: 22 July 2009, 3:06 AM EDT
Location: india
Posts: 9
Thanks Given: 0
Thanked 0 Times in 0 Posts
i want to read a word from the keyboard just like we use gets(str) in c laguage.
but how it is in awk
sankar_1209
View Public Profile for sankar_1209
Find all posts by sankar_1209
#
5
09-24-2008
matrixmadhan
Registered User
3,216,
33
Join Date: Mar 2005
Last Activity: 4 September 2020, 7:11 AM EDT
Location: classification algos
Posts: 3,216
Thanks Given: 19
Thanked 33 Times in 30 Posts
try this,
Code
:
awk 'BEGIN{ getline tmp < "/dev/tty"; print tmp }' /dev/null
matrixmadhan
View Public Profile for matrixmadhan
Find all posts by matrixmadhan
#
6
09-24-2008
matrixmadhan
Registered User
3,216,
33
Join Date: Mar 2005
Last Activity: 4 September 2020, 7:11 AM EDT
Location: classification algos
Posts: 3,216
Thanks Given: 19
Thanked 33 Times in 30 Posts
Quote:
Originally Posted by
subhendu81
plz make ur quesry clear...so that we may able to ans ur query..
Please don't use cyber chat styles
plz
ur
ans
matrixmadhan
View Public Profile for matrixmadhan
Find all posts by matrixmadhan
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×