I have the following SED regular expression on Linux and am wondering if "/P" means literally to match "/P"? (I'm new to SED but know Perl regular expressions) See below:
sed -e 's,\(.*\)/P.*$,\1,'
Can anyone help?
Yes, "/P" is literally matching "/P".
's' is the sed subtitute command, in this case using ',' as a delimiter. See 'man sed'.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments