<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[#TIL In bash you can create multiple (nested) directories with a single compact line:]]></title><description><![CDATA[<p><a href="https://social.tchncs.de/tags/TIL" rel="tag">#<span>TIL</span></a> In bash you can create multiple (nested) directories with a single compact line:</p><p>❯ mkdir -p a/{b,c/{x,y},d/{e,f}}</p><p>❯ tree<br /> .<br />└── a<br />        ├── b<br />        ├── c<br />        │     ├── x<br />        │     └── y<br />        └── d<br />                ├── e<br />                └── f</p><p><a href="https://social.tchncs.de/tags/bash" rel="tag">#<span>bash</span></a> <a href="https://social.tchncs.de/tags/linux" rel="tag">#<span>linux</span></a> <a href="https://social.tchncs.de/tags/cli" rel="tag">#<span>cli</span></a></p>]]></description><link>https://board.circlewithadot.net/topic/3f13b5bd-9d4d-4bec-9f16-ab76cec914ab/til-in-bash-you-can-create-multiple-nested-directories-with-a-single-compact-line</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 20:51:54 GMT</lastBuildDate><atom:link href="https://board.circlewithadot.net/topic/3f13b5bd-9d4d-4bec-9f16-ab76cec914ab.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Apr 2026 13:38:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Sat, 25 Apr 2026 11:57:33 GMT]]></title><description><![CDATA[<p><span><a href="https://noc.social/@arnotron">@<span>arnotron</span></a></span> </p><p>I was not aware of this technique until recently... and yes I see also there are more use cases e.g. with `cp` and `mv`. <img src="https://board.circlewithadot.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=28325c671da" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title="👍" alt="👍" /></p>]]></description><link>https://board.circlewithadot.net/post/https://social.tchncs.de/users/cark/statuses/116465221838225987</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://social.tchncs.de/users/cark/statuses/116465221838225987</guid><dc:creator><![CDATA[cark@social.tchncs.de]]></dc:creator><pubDate>Sat, 25 Apr 2026 11:57:33 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Sat, 25 Apr 2026 11:45:57 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> I love brace expressions to create backup copies or rename files. E.g. cp a{,.bak} or me b{,.old}</p>]]></description><link>https://board.circlewithadot.net/post/https://noc.social/users/arnotron/statuses/116465176245481256</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://noc.social/users/arnotron/statuses/116465176245481256</guid><dc:creator><![CDATA[arnotron@noc.social]]></dc:creator><pubDate>Sat, 25 Apr 2026 11:45:57 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Sat, 25 Apr 2026 11:32:47 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> Brilliant, thanks for sharing!</p>]]></description><link>https://board.circlewithadot.net/post/https://chaos.social/users/jantheowassink/statuses/116465124469386848</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://chaos.social/users/jantheowassink/statuses/116465124469386848</guid><dc:creator><![CDATA[jantheowassink@chaos.social]]></dc:creator><pubDate>Sat, 25 Apr 2026 11:32:47 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Sat, 25 Apr 2026 10:36:46 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> Whaaaat?! 🤯</p>]]></description><link>https://board.circlewithadot.net/post/https://mastodon.green/users/proedie/statuses/116464904188724276</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mastodon.green/users/proedie/statuses/116464904188724276</guid><dc:creator><![CDATA[proedie@mastodon.green]]></dc:creator><pubDate>Sat, 25 Apr 2026 10:36:46 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Sat, 25 Apr 2026 10:09:17 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> This is a very neat trick of the sort where you learn about it and then spend five minutes thinking of a scenario where it would be useful. <img src="https://board.circlewithadot.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=28325c671da" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>]]></description><link>https://board.circlewithadot.net/post/https://mastodon.social/users/danimrich/statuses/116464796116245929</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mastodon.social/users/danimrich/statuses/116464796116245929</guid><dc:creator><![CDATA[danimrich@mastodon.social]]></dc:creator><pubDate>Sat, 25 Apr 2026 10:09:17 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Sat, 25 Apr 2026 10:06:24 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> Shell expansion magic</p>]]></description><link>https://board.circlewithadot.net/post/https://mastodontech.de/users/MontyZuma/statuses/116464784799798880</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mastodontech.de/users/MontyZuma/statuses/116464784799798880</guid><dc:creator><![CDATA[montyzuma@mastodontech.de]]></dc:creator><pubDate>Sat, 25 Apr 2026 10:06:24 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Fri, 24 Apr 2026 17:39:24 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> Man, curly braces in bash creep me out. I can never remember whether that you need a comma to separate items (because glob expansion produces spaces). If I tried to build that command I would get errors or subfolders called ; <img src="https://board.circlewithadot.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=28325c671da" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:23px;width:auto;vertical-align:middle" title="😅" alt="😅" /></p>]]></description><link>https://board.circlewithadot.net/post/https://mograph.social/users/compfu/statuses/116460903782726611</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mograph.social/users/compfu/statuses/116460903782726611</guid><dc:creator><![CDATA[compfu@mograph.social]]></dc:creator><pubDate>Fri, 24 Apr 2026 17:39:24 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Fri, 24 Apr 2026 16:38:45 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> and also with fish on cachyos linux.</p>]]></description><link>https://board.circlewithadot.net/post/https://gruene.social/users/matthias/statuses/116460665285491345</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://gruene.social/users/matthias/statuses/116460665285491345</guid><dc:creator><![CDATA[matthias@gruene.social]]></dc:creator><pubDate>Fri, 24 Apr 2026 16:38:45 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Fri, 24 Apr 2026 16:37:20 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> tested on OpenIndiana. Works in the same way. Thx!</p>]]></description><link>https://board.circlewithadot.net/post/https://gruene.social/users/matthias/statuses/116460659693985371</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://gruene.social/users/matthias/statuses/116460659693985371</guid><dc:creator><![CDATA[matthias@gruene.social]]></dc:creator><pubDate>Fri, 24 Apr 2026 16:37:20 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Fri, 24 Apr 2026 16:32:13 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> modifiziert -p is idempotent, too!<br />Like in any Script:</p><p>tempdir_for_script=“/tmp/tempdir_for_$(basename “$0”)</p><p>Later in the script:<br />&lt;result to log&gt; &gt;&gt; “$tempdir_for_script”</p><p>Last line of script:<br /># rm -r “$tempdir_for_script”</p><p>(Remove # after full debugging)</p>]]></description><link>https://board.circlewithadot.net/post/https://chaos.social/users/carl/statuses/116460639604524370</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://chaos.social/users/carl/statuses/116460639604524370</guid><dc:creator><![CDATA[carl@chaos.social]]></dc:creator><pubDate>Fri, 24 Apr 2026 16:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Fri, 24 Apr 2026 16:27:36 GMT]]></title><description><![CDATA[<p><span><a href="/user/daesorin%40hachyderm.io">@<span>daesorin</span></a></span> Thank you <img src="https://board.circlewithadot.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60a.png?v=28325c671da" class="not-responsive emoji emoji-android emoji--blush" style="height:23px;width:auto;vertical-align:middle" title="😊" alt="😊" /> </p><p>Once in a while I have some random insights that I deem worth sharing. However, while I write up those thoughts I usually doubt whether it is worth the effort...</p><p>Therefore, it is really nice to hear that one of those thoughts inspired you that much that you still remember it (and its provenience).</p><p>For other readers: This is the post about the proper usage of <img class="not-responsive emoji" src="https://f2.tchncs.de/custom_emojis/images/000/004/249/original/git2x.png" title=":git:" /> in case of <img src="https://board.circlewithadot.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f525.png?v=28325c671da" class="not-responsive emoji emoji-android emoji--fire" style="height:23px;width:auto;vertical-align:middle" title="🔥" alt="🔥" /></p><p><a href="https://social.tchncs.de/tags/git" rel="tag">#<span>git</span></a></p>]]></description><link>https://board.circlewithadot.net/post/https://social.tchncs.de/users/cark/statuses/116460621450237657</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://social.tchncs.de/users/cark/statuses/116460621450237657</guid><dc:creator><![CDATA[cark@social.tchncs.de]]></dc:creator><pubDate>Fri, 24 Apr 2026 16:27:36 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Fri, 24 Apr 2026 16:06:00 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> btw it's called brace expansion. I highly recommend reading the man page of bash, it's all in there! It's loong though.</p>]]></description><link>https://board.circlewithadot.net/post/https://social.tchncs.de/users/irom/statuses/116460536485751391</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://social.tchncs.de/users/irom/statuses/116460536485751391</guid><dc:creator><![CDATA[irom@social.tchncs.de]]></dc:creator><pubDate>Fri, 24 Apr 2026 16:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Fri, 24 Apr 2026 15:26:28 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> Loved your piece on `git fire`. It has inspired me.</p>]]></description><link>https://board.circlewithadot.net/post/https://hachyderm.io/ap/users/115866340212018473/statuses/116460381065830819</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://hachyderm.io/ap/users/115866340212018473/statuses/116460381065830819</guid><dc:creator><![CDATA[daesorin@hachyderm.io]]></dc:creator><pubDate>Fri, 24 Apr 2026 15:26:28 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Fri, 24 Apr 2026 14:18:32 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> neat, isn't it?</p>]]></description><link>https://board.circlewithadot.net/post/https://toot.cat/ap/users/116459250916238814/statuses/116460113904305811</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://toot.cat/ap/users/116459250916238814/statuses/116460113904305811</guid><dc:creator><![CDATA[creaturaignota@toot.cat]]></dc:creator><pubDate>Fri, 24 Apr 2026 14:18:32 GMT</pubDate></item><item><title><![CDATA[Reply to #TIL In bash you can create multiple (nested) directories with a single compact line: on Fri, 24 Apr 2026 13:48:13 GMT]]></title><description><![CDATA[<p><span><a href="/user/cark%40social.tchncs.de">@<span>cark</span></a></span> Thanks!!! Didn't know that.</p>]]></description><link>https://board.circlewithadot.net/post/https://fediscience.org/users/jkanev/statuses/116459994682032834</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://fediscience.org/users/jkanev/statuses/116459994682032834</guid><dc:creator><![CDATA[jkanev@fediscience.org]]></dc:creator><pubDate>Fri, 24 Apr 2026 13:48:13 GMT</pubDate></item></channel></rss>