Texonom
Texonom
/
Engineering
Engineering
/Hardware Engineering/Computer/Operating System/OS Structure/I/O System/Shell/Shell Implementation/Bash/Bash Script/
Bash Brace Expansion
Search

Bash Brace Expansion

Creator
Creator
Seonglae Cho
Created
Created
2021 May 16 8:24
Editor
Editor
Seonglae Cho
Edited
Edited
2021 May 16 8:25
Refs
Refs

number

echo {1..10} echo {5..1} echo {4..-4}
 
 

alphabet

echo {q..v} echo {f..a}
 
 
 

nested

echo {q..v}{1..3} echo {part-1,part-2{a,b,c,d},part-3} echo chapter{1..3} echo {contents,paper,bilbiography}.md
 
 
 
How to Use Brace Expansion in Linux's Bash Shell
Brace expansion is a useful technique to generate lists of strings that can be used in scripts and aliases and on the Linux command line. Save time and avoid mistakes by typing less. Before the Bash shell executes a command in a terminal window or a line in a script, it checks whether it needs to perform any substitutions on the command.
How to Use Brace Expansion in Linux's Bash Shell
https://www.howtogeek.com/725657/how-to-use-brace-expansion-in-linuxs-bash-shell/
How to Use Brace Expansion in Linux's Bash Shell
 
 

Table of Contents
numberalphabetnested

Backlinks

Bash Script

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Hardware Engineering/Computer/Operating System/OS Structure/I/O System/Shell/Shell Implementation/Bash/Bash Script/
Bash Brace Expansion
Copyright Seonglae Cho