Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
having issues using awk and/or converting to perl
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Xicheng, post: 4806512"] If this is what you want, just forget about using awk within perl scripts, the perl onelier is easy as awk: perl -nle 'print if /^F/' infile > outfile you dont need to separate line into columns except that you need to check contents in a specific column, like: perl -anle 'print if $F[2] =~ /^F/' infile > outfile this check if column-3 begins with 'F'... your awk command can be written as: awk '/^F/' infile > outfile Xicheng [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
having issues using awk and/or converting to perl
Top