Skip to content

Magenaut

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

shell-script

generate consistent machine unique ID

August 9, 2022 by Magenaut

Can we generate a unique id for each PC, something like uuuidgen, but it will never change unless there are hardware changes? I was thinking about merging CPUID and MACADDR and hash them to generate a consistent ID, but I have no idea how to parse them using bash script, what I know is how can I get CPUID from

Categories Q&A, Unix & Linux Tags hardware, hashsum, linux, shell-script, uuid Leave a comment

call function declared below

August 9, 2022 by Magenaut

Is it possible to call a function which is declared below in bash?

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

Trap, ERR, and echoing the error line

August 9, 2022 by Magenaut

I’m trying to create some error reporting using a Trap to call a function on all errors:

Categories Q&A, Unix & Linux Tags bash, error-handling, shell-script, trap Leave a comment

GNU parallel vs & (I mean background) vs xargs -P

August 9, 2022 by Magenaut

I’m confused about the difference or advantage (if any) of running a set of tasks in a .sh script using GNU parallel

Categories Q&A, Unix & Linux Tags background-process, gnu-parallel, shell-script, xargs Leave a comment

How to check if any IP address is present in a file using shell scripting?

August 9, 2022 by Magenaut

I have a script that generates some output. I want to check that output for any IP address like

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

Fastest way to concatenate files

August 9, 2022 by Magenaut

I’ve got 10k+ files totaling over 20GB that I need to concatenate into one file.

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

Is there a JavaScript shell?

August 9, 2022 by Magenaut

Recently I’ve been working with JS and I’m very enthusiastic about this language. I know that there is node.js for running JS at server side, but is there a shell that uses JS as a scripting language? If such thing exists, how usable & stable is it?

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

convert CSV to XLS file on linux

August 9, 2022 by Magenaut

The following Perl script can convert CSV file to XLS file

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

Is it a sane approach to “back up” the $IFS variable?

August 9, 2022 by Magenaut

I am always really hesitant to mess around with $IFS because it’s clobbering a global.

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

what is the zsh equivalent of bash’s export -f

August 9, 2022 by Magenaut

So I started using zsh. I like it all right. It seems very cool and slick, and the fact that the current working directory and actual command line are on different lines is nice, but at the same time, I’m noticing that zsh can be a bit slower than bash, especially when printing text to the screen.

Categories Q&A, Unix & Linux Tags function, shell-script, zsh Leave a comment
Older posts
Newer posts
← Previous Page1 … Page10 Page11 Page12 … 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