http://stackoverflow.com/questions/12682715/grep-print-only-after-match
file:
/player/ABc12
/player/ABC321
/player/EGF987
/player/egf751
grep -oP '(?<=/player/)\w+' file
sed 's:.*/::' file
$ awk -F/ '$2 == "player" { print $3 }' file
$ grep -oP "/player/\K.*" file
$ grep -oP "[^/]/\K.*" file
$ grep -o '[^/]\+$' file
grep -oP '(?<=^/player/).*' file
No comments:
Post a Comment