Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

brace-expansion

Brace expansion not working in a script

August 10, 2022 by Magenaut

for i in {1..40} do echo $i done I got {1..40} and I would like to have something like 1 2 3 and so on so I can use the variable i inside a command’s parameter. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help … Read more

Categories Q&A, Unix & Linux Tags bash, brace-expansion, shell, shell-script Leave a comment

When do you use brace expansion?

August 9, 2022 by Magenaut

I understand what brace expansion is, but I don’t know how best to use it.

Categories Q&A, Unix & Linux Tags bash, brace-expansion, ksh, shell, zsh Leave a comment

How to create a sequence with leading zeroes using brace expansion

August 9, 2022 by Magenaut

When I use the following, I get a result as expected:

Categories Q&A, Unix & Linux Tags arithmetic, bash, brace-expansion Leave a comment

Why doesn’t systemctl {restart,status} sshd; work?

August 8, 2022 by Magenaut

The output of the above command when passed through echo is:

Categories Q&A, Unix & Linux Tags bash, brace-expansion, command-line Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress