Search Results

Search: Posts Made By: konerusuneel
3,047
Posted By neutronscott
That entire file is an awk program. Notice the...
That entire file is an awk program. Notice the #!/usr/bin/awk -f already on the first line.
You can:

Set it executable (chmod a+x tags), and run it as ./tags
Run as: awk -f tags.awk...
3,047
Posted By neutronscott
you mean instead of START you can have Start,...
you mean instead of START you can have Start, etc? This is not pretty in awk:

Replace either

$0 == "START"

with

toupper($0) == "START"



OR



/^[Ss][Tt][Aa][Rr][Tt]$/
3,047
Posted By neutronscott
This may be difficult without more information....
This may be difficult without more information. You first have a START tag without an END. How do you know not to continue until reaching the end of file? Do you reset at a blank line?

----------...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 01:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy