12 examples to use flower brackets in Linux | Linux Today

12 examples to use flower brackets in Linux

Written By
Web Webster
Web Webster
Feb 22, 2016

This is a small post on how to create multiple files/folders, sequence generation with flower brackets in-order to save valuable time.

Creating empty files can be done with touch command. We will see how to create multiple files using this command in one shot. Example 1: Create a file with name abc.txt touch abc.txt Example2: Create multiple files abc, cde, efg, hij, klm touch abc cde efg hij klm Example 3: How about creating 1 to 20 files, ie creating multiple files with one command. Its bit tedious job for an admin. Don’t worry Linux provide us with some useful option with ???Flower braces??? to do expansion. Instead of writing below command touch 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 We can create 20 files using flower brace {} expansion as shown below..

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.