awk does not recognize ^ to lock pattern to start of line
Asked by
James M Stansberry
When trying to match a pattern in awk that should only occur on the beginning of a line,
I.E. /^303 [0-9]/ the pattern is not recognized. Nothing is output from awk. That
is a space between the 3 and [
Looking in the awk man pages, not only does it state that the ^ should work, it even shows
an example of that.
I've tried everything I can think of but I can't resolve the issue.
This is awk on Ubuntu 12.04 LTS with the Gnome Classic desktop.
This pattern works on HP-UX.
Thanks for any help,
James M (Mike) Stansberry
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu gawk Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- James M Stansberry
- Solved:
- Last query:
- Last reply:
To post a message you must log in.