Note that there are some explanatory texts on larger screens.

plurals
  1. POExtract filename and path from URL in bash script
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. CODuplicate question: 27745
      singulars
    2. COIf the OP asks for an answer using bash, awk and/or sed, those are the languages that the answers should target. I'm getting sick of this "substituting your language of choice" on SO. Recently I asked a question about Javascript without a framework because I knew the platform I was targetting wouldn't support it. But all I got was a discussion about why I couldn't use jQuery. Also, I once was developing on an embedded device and Perl for instance was not installed, so I needed to do these sorts of things with awk. So answer the questions using the OP's language(s), or don't answer at all.
      singulars
    3. COIt depends on your default. In your case, you default to 'assume all requirements not specified in the question are explicitly forbidden'. In this case, the poster is a novice with regexes, and almost certainly doesn't care whether the answer is in sed/awk, perl, or any other *standard* tool. Apart from specialised embedded devices, there is no argument for 'Perl may not be present on the platform'. SO should be a tool for learning as well as a way of getting specific answers. The fact the OP accepted a Perl answer speaks for itself. Your negative votes are a mistake.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload