10-17-2008, 09:52 PM
In other words, you want to strip out everything from the beginning of the line through the '::' (if it exists) and output the remainder of the line.
sed -E 's/^.*:://'
will do this. In the Terminal, try:
$ (echo Location ; echo Inspections_Selected::Inspector) | sed -E 's/^.*:://'
Location
Inspector
$
sed -E 's/^.*:://'
will do this. In the Terminal, try:
$ (echo Location ; echo Inspections_Selected::Inspector) | sed -E 's/^.*:://'
Location
Inspector
$