Quantcast
Channel: User Kamil Maciorowski - Super User
Viewing all articles
Browse latest Browse all 837

Comment by Kamil Maciorowski on How can I grep two different match combination of the file names with filter?

$
0
0
Here it's not a problem, but in general there is yet another disadvantage of multiple separate globs: if any pathname matches more than one glob then it will appear more than one time after expansion. This, depending on what the expanded values are used for, may have unpleasant consequences. E.g. if the task is "remove the first line with sed -i" then a file whose pathname appears twice will be processed twice and thus it will lose two lines.

Viewing all articles
Browse latest Browse all 837

Trending Articles