Skip to content

Magenaut

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

bash

What are the scope restrictions for setting shopt extglob. and other options?

August 8, 2022 by Magenaut

My non-interactive bash shell has extglob off. I would like to turn it on in the statement immediately before a command, but I have noticed that when shopt -s extglob is within an if .. then .. else block, it somehow does not register.

Categories Q&A, Unix & Linux Tags bash, shopt Leave a comment

How to run grep and show x number of lines before and after the match

August 8, 2022 by Magenaut

Context Line Control

Categories Q&A, Unix & Linux Tags bash, grep Leave a comment

How to assign result of sed to variable

August 8, 2022 by Magenaut

Below is a complete copy of a demo I’m using to to figure out to get the sed command to get rid of the spaces in a persons name, and compress it down to not have spaces.

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

Progressbar in bash to visualize the time to wait

August 8, 2022 by Magenaut

In a bash script sometimes you need the user to wait some seconds for a background process to finish.

Categories Q&A, Unix & Linux Tags bash, programming Leave a comment

Keep running a script via ssh

August 8, 2022 by Magenaut

ssh can use to run remote commands.

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

How do I use a temporary environment variable in a bash for loop?

August 8, 2022 by Magenaut

I want to run YII_ENV=prod yii kw/test ten times. I tried

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

How to modify an installation ISO and keep it bootable?

August 8, 2022 by Magenaut

I know there have been quite a few similar questions, but they aren’t specific enough.

Categories Q&A, Unix & Linux Tags bash, bootable, iso, uefi, windows Leave a comment

Bash script Multiply only numbers from a text file?

August 8, 2022 by Magenaut

I am looking for a bash command that will multiply only numbers from a text file. Below is the content of my text file. I need multiply all numbers by 100.

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

Unexpected behaviour from Readline’s bind command

August 8, 2022 by Magenaut

I hadn’t yet researched whether or not bracketed paste mode is supported by the version of Bash/Readline on my Ubuntu 16.04 system (it isn’t) and out of curiosity, I ran the following command presented in this Ask Ubuntu answer.

Categories Q&A, Unix & Linux Tags bash, readline Leave a comment

How do I cd up and down again with symlinks in bash?

August 8, 2022 by Magenaut

Structure:

Categories Q&A, Unix & Linux Tags bash, cd-command, symlink Leave a comment
Older posts
Newer posts
← Previous Page1 … Page40 Page41 Page42 … Page65 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