Skip to content

Magenaut

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

bash

Piping search term (not filename) to grep

August 8, 2022 by Magenaut

I want to pick out certain lines containing a given number from a file.
The file I want to search is called os_clusters/piRNA_clusters.bed.

Categories Q&A, Unix & Linux Tags bash, grep, pipe 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

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

Behaviour of bash command substitution with command from string in variable

August 8, 2022 by Magenaut

There are seven kinds of expansion … The order of expansions is: brace expansion; tilde expansion, parameter and variable expansion, arithmetic expansion, and command substitution (done in a left-to-right fashion); word splitting; and filename expansion

Categories Q&A, Unix & Linux Tags bash, command-line, command-substitution, variable-substitution Leave a comment

What can I do if bash stops echoing?

August 8, 2022 by Magenaut

One of the applications I use at work sometimes screws with my bash and so I don’t see my own input anymore. I.e.

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

how to understand the output of “echo $-“?

August 8, 2022 by Magenaut

How to understand the output of echo $-? It looks like some kind of flag characters. I can’t get a clue by googling.

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

Batch renaming files with pattern

August 8, 2022 by Magenaut

I have some files named like these:

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

Resolve nested aliases to their source commands

August 8, 2022 by Magenaut

I’ve made several aliases for my convenience.But now I need to be helpful by sending a useful command and it is full of aliases.I’ve tried doing type u but all it returns is

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

Why (…) doesn’t spawn a new child process when run in background?

August 8, 2022 by Magenaut

After running the command

Categories Q&A, Unix & Linux Tags bash, command, subshell 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
Older posts
Newer posts
← Previous Page1 … Page36 Page37 Page38 … 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