Skip to content

Magenaut

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

bash

How do I count the number of occurrences of a word in a text file with the command line?

August 10, 2022 by Magenaut

I have a large JSON file that is on one line, and I want to use the command line to be able to count the number of occurrences of a word in the file. How can I do that?

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

In bash, how can I convert a Unicode Codepoint [0-9A-F] into a printable character?

August 10, 2022 by Magenaut

I have a list of Unicode codepoints, but I don’t know of a “simple” way to convert these hex values into the actual characters they represent…

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

What does “rc” in .bashrc stand for?

August 10, 2022 by Magenaut

Is it “resource configuration”, by any chance?

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

What does <<< mean?

August 10, 2022 by Magenaut

What does <<< mean? Here is an example: $ sed 's/a/b/g' <<< "aaa" bbb Is it something general that works with more Linux commands? It looks like it’s feeding the sed program with the string aaa, but isn’t << or < usually used for that? Answers: Thank you for visiting the Q&A section on Magenaut. … Read more

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

Why does closing terminal emulator window terminate a bash process with SIGHUP trap changed not to terminate?

August 10, 2022 by Magenaut

In a bash shell in a terminal emulator window of lxterminal, I run

Categories Q&A, Unix & Linux Tags bash, linux, sighup, signals, terminal-emulator Leave a comment

Which shell am I running on?

August 10, 2022 by Magenaut

When I run echo $SHELL the output says /bin/tcsh which means that I am running a tcsh shell.
But for example when I issue the following command

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

Bash =~ regex and https://regex101.com/

August 10, 2022 by Magenaut

Using https://regex101.com/ I built a regular expression to return the first occurrence of an IP address in a string.

Categories Q&A, Unix & Linux Tags bash, regular-expression Leave a comment

bash iterate file list, except when empty

August 10, 2022 by Magenaut

I thought this would be simple – but it is proving more complex than I expected.

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

How to pass the output of one command as the command-line argument to another?

August 10, 2022 by Magenaut

So I have a script that, when I give it two addresses, will search two HTML links:

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

Can I somehow add a “&& prog2” to an already running prog1?

August 10, 2022 by Magenaut

Most shells provide functions like && and ; to chain the execution of commands in certain ways. But what if a command is already running, can I still somehow add another command to be executed depending on the result of the first one?

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