Skip to content

Magenaut

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

shell-script

Decoding URL encoding (percent encoding)

August 11, 2022 by Magenaut

I want to decode URL encoding, is there any built-in tool for doing this or could anyone provide me with a sed code that will do this?

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

Modify all bash commands through a program before executing them

August 11, 2022 by Magenaut

I am trying to create a program which require such feature. The flow will be like:

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

Check if folder is a mounted remote filesystem

August 11, 2022 by Magenaut

What is the best way (reliable, portable, etc.) to check if a given folder is on a mounted remote (nfs) filesystem within a shell script?

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

How do you colorize only some keywords for a bash script?

August 10, 2022 by Magenaut

I am running some unit test code. The unit test code outputs regular text. There is a lot of the text so I want to highlight for the user important keywords.

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

How do I display all the characters between two specific strings?

August 10, 2022 by Magenaut

I want to display all the characters in a file between strings “xxx” and “yyy” (the quotes are not part of the delimiters). How can I do that ? For example, if i have input “Hello world xxx this is a file yyy”, the output should be ” this is a file “

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

How to move the first x files

August 10, 2022 by Magenaut

I have this huge folder with thousands of unordered files. Is it feasible to move the first 5000s to a subfolder via the mv command? For now I move files with

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

What does it mean to have a $”dollarsign-prefixed string” in a script?

August 10, 2022 by Magenaut

I just saw this in an init script:

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

The “proper” way to test if a service is running in a script

August 10, 2022 by Magenaut

My problem:

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

What is a fast command line way to switch between multiple directories for system administration?

August 10, 2022 by Magenaut

What is a fast command line way to switch between multiple directories for system administration? I mean, I can use pushd . and popd to toggle, but what if I want to store multiples and cycle through them, rather than permanently popping them off the bottom of the stack?

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

What command(s) will feed a tab-delimited text file and cut each line to 80 characters?

August 10, 2022 by Magenaut

I’ve got multiple-line text files of (sometimes) tab-delimited data. I’d like to output the file so I can glance over it – so I’d like to only see the first 80 characters of each line (I designed the text file to put the important stuff first on each line).

Categories Q&A, Unix & Linux Tags columns, shell-script, tabulation, text-processing Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … 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