Hello there,

I understand that this question should be asked in other mailing list, but I
hope I could count on your friendly help.

So I have a file which is containing a line (for example)

FIELD_NAME="user"

All I need is to get the value "user" without quotation mrks from this file.
I wrote this one-line perl explession in my c shell script(var $input_file
is already setted up):

set user_name= (`perl -w -e 'while (<>) {if (m/FIELD_NAME=\"(.*)\"/) {print
$1; exit}}' $input_file`)

But maybe somebody could help me to express the same with AWK?

TIA,
Tim
------------------------------------------
Chakirov, Timour (EXTERN) (TC CIS;DS/ESQ2)

Tel.:   +49(0)711-811-40134
Email.: [EMAIL PROTECTED]

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to