Skip to content

Magenaut

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

shell-script

Why is the PGID of my child processes not the PID of the parent?

August 10, 2022 by Magenaut

So I keep reading everywhere that this command should terminate all child processes of the parent process:

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

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

Replacing pattern after nth match is found on each line?

August 10, 2022 by Magenaut

The s command can be followed by zero or more of the following flags:

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

Using a reference to a bash string variable in sed

August 10, 2022 by Magenaut

I’m a relative Linux novice. Suppose that I have a text file a.txt that contains the following text:

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

History substitution fails when implemented in shell script

August 9, 2022 by Magenaut

Output 09_03_2016

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

What is the function of bash shebang?

August 9, 2022 by Magenaut

Interpreter directives allow scripts and data files to be used as
commands, hiding the details of their implementation from users and
other programs, by removing the need to prefix scripts with their
interpreter on the command line.

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

Date validation in shell

August 9, 2022 by Magenaut

I want to validate the below date format in shell script

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

Best way to swap filenames

August 9, 2022 by Magenaut

I need to swap filenames of two files (file and file_1). I’m using the following code for it.

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

How can I use a variable as a case condition?

August 9, 2022 by Magenaut

I am trying to use a variable consisting of different strings separated with a | as a case statement test. For example:

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

How to define and load your own shell function in zsh

August 9, 2022 by Magenaut

I am having a hard time defining and running my own shell functions in zsh. I followed the instructions on the official documentation and tried with easy example first, but I failed to get it work.

Categories Q&A, Unix & Linux Tags shell-script, zsh Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … 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