Skip to content

Magenaut

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

bash

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

Where are zsh and mksh incompatible with bash?

August 9, 2022 by Magenaut

To what extent can other POSIX-compatible shells function as reasonable replacements for bash? They don’t need to be true “drop-in” replacements, but close enough to work with most scripts and support the rest with some modification.

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

How to prefix any output in a bash script?

August 9, 2022 by Magenaut

When a script runs, commands in it may output some text to stdout/stderr. Bash itself may also output some text. But if a few scripts are running at the same time, it is hard to identify where does an error come from. So is it possible to insert a prefix to all output of the … Read more

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

What is “declare” in Bash?

August 9, 2022 by Magenaut

After reading ilkkachu’s answer to this question I learned on the existence of the declare (with argument -n) shell built in.

Categories Q&A, Unix & Linux Tags bash, control-flow, declare, function, shell-builtin Leave a comment

What is the difference between .profile and .bash_profile and why don’t I have a .profile file on my system?

August 9, 2022 by Magenaut

So I’m pretty new to Linux and recently installed Fedora 19 on my netbook. I want to have a deeper understanding of Linux and the CLI so I’m now reading Learn Linux: The Hard Way.

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

How to redirect the output of any command?

August 9, 2022 by Magenaut

I’m trying to write a simple script to monitor my network status, without all of ping‘s output:

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

rsync certain files, excluding the rest, ignoring .svn/ directory, recursively

August 9, 2022 by Magenaut

I’m using rsync to copy some files from a share to another.

Categories Q&A, Unix & Linux Tags bash, file-sharing, networking, regular-expression, rsync Leave a comment

Autocomplete of filename in directory

August 9, 2022 by Magenaut

This question is quite similar to this one, but I can’t understand the solution. I also know this tutorial, but still I am unable to understand what I am doing wrong.

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

bash: /dev/stderr: Permission denied

August 9, 2022 by Magenaut

After upgrading to a new release version, my bash scripts start spitting errors:

Categories Q&A, Unix & Linux Tags bash, permissions, stdout Leave a comment
Older posts
Newer posts
← Previous Page1 … Page31 Page32 Page33 … 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