Brace expansion to reduce typing

Have you ever found yourself copying a Linux file and adding a suffix, like this? Try this command instead, which does the same thing but with less typing (one argument instead of two): Why it works: This command employs brace expansion. A comma-separated expression like this: expands to this: In my example command, the braces enclose two strings: an empty string and a . So this expression...

Source

 •  0 comments  •  flag
Share on Twitter
Published on February 21, 2022 17:24
No comments have been added yet.