Skip to content

Magenaut

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

shell-script

Why does printf print more arguments than expected?

August 8, 2022 by Magenaut

Why is this shell script printing inputs twice?

Categories Q&A, Unix & Linux Tags shell-script 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

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

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

Script failing with “command not found: ^M”

August 8, 2022 by Magenaut

When I try to run the following script in zsh, via the command /bin/zsh ~/.set_color_scheme.sh I get the following error:

Categories Q&A, Unix & Linux Tags character-encoding, newlines, shell, shell-script, zsh Leave a comment

How to force ssh to execute command on the remote system instead of locally

August 8, 2022 by Magenaut

I have SSH executing some commands in a script, like so:

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

How to use sed command to modify a file’s entry line by line in shell script?

August 8, 2022 by Magenaut

This is my file1:

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

Variable in sed

August 8, 2022 by Magenaut

I have a file that contains filenames with absolute path.

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

“stdin: is not a tty” mails for running scripts as cron jobs

August 8, 2022 by Magenaut

I have several shell scripts (bash) which are started by cron. Every time a script is executed I get an email saying “stdin: is not a tty”. Can someone please tell me how to fix this? All scripts run successfully but these mails are killing my email folder.

Categories Q&A, Unix & Linux Tags bash, cron, shell-script Leave a comment
Older posts
Newer posts
← Previous Page1 … Page14 Page15 Page16 … 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