Skip to content

Magenaut

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

shell-script

Test for array support by shell

August 8, 2022 by Magenaut

Is there a concise way of testing for array support by the local Bourne-like shell at command line ?

Categories Q&A, Unix & Linux Tags array, shell, shell-script Leave a comment

In a bash shell script, writing a for loop that iterates over string values

August 8, 2022 by Magenaut

In bash, I know that it is possible to write a for loop in which some loop control variable i iterates over specified integers. For example, I can write a bash shell script that prints the integers between 1 and 10:

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

Parallel execution of a program on multiple files

August 8, 2022 by Magenaut

I have a small script that loops through all files of a folder and executes a (usually long lasting) command. Basically it’s

Categories Q&A, Unix & Linux Tags parallelism, scripting, shell-script Leave a comment

When sh is a symlink to bash or dash, bash limits itself to POSIX-compliance, so it should be 100% compatible with sh?

August 8, 2022 by Magenaut

From Difference between bash and sh:

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

Prepare answers for questions of a command

August 8, 2022 by Magenaut

Let’s say I want to write a shell script that executes just one command. But this command is poorly designed. It doesn’t offer any command line options; instead it asks some questions and waits for user input.

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

How to invoke a shell built-in explicitly?

August 8, 2022 by Magenaut

I want to customize the functionality of cd command as per my needs.

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

./executable: cannot execute binary file

August 8, 2022 by Magenaut

I have a script that works well when I ssh to the server to execute it myself, but has problems when Hudson, a continuous integration server, runs it.

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

How to return the currently active user/session on a graphical Linux desktop session?

August 8, 2022 by Magenaut

My question is how to get the user name on the shell, who is currently using the Linux desktop (on a “normal” desktop system, where you usually only have one active user, i.e. no server system here, but just your usual Laptop etc.). If you really want to imagine a server system, I would be … Read more

Categories Q&A, Unix & Linux Tags shell, shell-script, users Leave a comment

Differentiating between running and being sourced in a bash shell script?

August 8, 2022 by Magenaut

Either what I’m asking here is extremely unorthodox/unconventional/risky, or my Google-fu skills just aren’t up to snuff…

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

Bash – Integer expression expected

August 8, 2022 by Magenaut

I am making the check for update script for my theme

Categories Q&A, Unix & Linux Tags numeric-data, shell-script, string, test Leave a comment
Older posts
Newer posts
← Previous Page1 … Page12 Page13 Page14 … Page24 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress