extglob Questions
3
Solved
Using the pattern match !("file1") does not work within a bash script but will work on the command line.
For example:
ls !("file1"|"file2")
This will list all files in directory except file1 a...
1
Solved
Problem
The behaviour of
!(pattern-list)
does not work the way I would expect when used in parameter expansion, specifically
${parameter/pattern/string}
Input
a="1 2 3 4 5 6 7 8 9 10"
...
Captious asked 29/5, 2017 at 12:3
1
© 2022 - 2024 — McMap. All rights reserved.