grep -v will exclude matching lines, but I want something that will print all lines but exclude a matching field. The pattern that I want excluded is '/mnt/svn'
If there is a better solution than awk I am happy to hear about it, but I would like to see this done in awk as well. I know I can use sed to substitute it away, but I wanted something a little more eloquent.
That seems to cause the entire line which contains the pattern to be excluded I want all lines to be printed but the pattern to be removed, equivalent to
Is /mnt/svn embedded in a longer string or is it the entire field? If it is embedded, do you want to remove the entire string or just the part /mnt/svn ? If just the part, above solution will fail, as it will remove the entire field.