awk is your friend:
awk 'BEGIN { FS = ":" } ; { print $NF }' potfile
or
cat potfile | awk 'BEGIN { FS = ":" } ; { print $NF }'
should do this job depending on the delimiter (":", " ", ....)
for more read this:
https://www.tutorialspoint.com/awk/awk_b...amples.htm
awk 'BEGIN { FS = ":" } ; { print $NF }' potfile
or
cat potfile | awk 'BEGIN { FS = ":" } ; { print $NF }'
should do this job depending on the delimiter (":", " ", ....)
for more read this:
https://www.tutorialspoint.com/awk/awk_b...amples.htm