mainThe GNU Bourne-Again SHell - Support: sr #109353, Deleting file name parts by a...

 
 

sr #109353: Deleting file name parts by a special pattern matching variant

Submitter:  Markus Elfring <elfring>
Submitted:  Tue 18 Jul 2017 03:00:48 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  Wont Do
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 19 Jan 2023 04:49:26 PM UTC, comment #4: 

I hope that duplicate data processing can be avoided for more efficient filtering.

Markus Elfring <elfring>
Thu 19 Jan 2023 04:43:35 PM UTC, comment #3: 

Everything has to be done in multiple steps, even internally. I don't think it's worth inventing new syntax that has to be supported forever to hide that at the script level, when there is already a way to do it.

Chet Ramey <chet>
Group administrator
Wed 18 Jan 2023 09:00:15 AM UTC, comment #2: 

Do you insist to perform the desired data processing in two steps?

Can efforts ever be avoided for duplicate evaluation of corresponding patterns?

Markus Elfring <elfring>
Tue 17 Jan 2023 09:52:08 PM UTC, comment #1: 

I think the best way to support this is to use pattern matching to generate a list and operate on the list members to keep and delete the portions you want.

Chet Ramey <chet>
Group administrator
Tue 18 Jul 2017 03:00:48 PM UTC, original submission:  

Pathname expansion is supported as a general functionality. Corresponding matching specifications can contain special pattern characters besides other name components.

I would like to clarify the possibility if the placeholders could be handled in the way that they denote the only parts which should be preserved from a specified path (while the other text would be omitted).

How do you think about to support a pattern matching variant where anything from a file name will be deleted if a placeholder was not used there?

Markus Elfring <elfring>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by elfring (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-17 chet StatusNone Wont Do

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code