DEV Community


TIL: Curly Bracket Substitution

scottw profile image Scott Watermasysk Originally published at on ・1 min read

You can use curly brackets for quick substitution in a shell command.

Curly Backet Example

Instead of manually typing the path out twice (or even tab completing it), you can list the parts to be swapped within curly brackets ({}).

Discussion (0)

Editor guide