Skip to content

Magenaut

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

Unix & Linux

Converting CSV to TSV

August 7, 2022 by Magenaut

I have a number of large CSV files and would like them in TSV (tab separated format). The complication is that there are commas in the fields of the CSV file, eg:

Categories Q&A, Unix & Linux Tags csv, perl, python, text-processing Leave a comment

Advantages of using set -o vi

August 7, 2022 by Magenaut

I have seen many developers using this command to set the option to vi. I never understood the real use of this?

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

Best practice to use $? in bash?

August 7, 2022 by Magenaut

When I read this answer about $? another question comes to mind.

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

Why does no one use the true Bourne shell as /bin/sh?

August 7, 2022 by Magenaut

I’ve noticed that basically no system I’ve ever worked with has /bin/sh as a real executable. It’s always a symlink to dash, bash in POSIX mode, or something similar.

Categories Q&A, Unix & Linux Tags dash, history, shell Leave a comment

Glob with Numerical Order

August 7, 2022 by Magenaut

I have this list of pdf files in a directory:

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

Shell script throws a not found error when run from a sh file. But if entered manually the commands work

August 7, 2022 by Magenaut

I’m trying to use the following script to generate a sitemap for my website. When I run it as sh thsitemap.sh I get an error like this and creates an empty sitemap.xml file:

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

How to automatically strip trailing spaces on save in Vi and Vim?

August 7, 2022 by Magenaut

Is there a .vimrc setting to automatically remove trailing whitespace when saving a file?

Categories Q&A, Unix & Linux Tags editors, vi, vim, vimrc, whitespace Leave a comment

Rebinding/disabling CTRL+ALT+F# Virtual Terminal/Console Switching

August 7, 2022 by Magenaut

I have an application that binds CTRL+ALT+F7, but my linux machine seems to catch the keystroke.

Categories Q&A, Unix & Linux Tags console, keyboard-shortcuts, tty, virtual-consoles, x11 Leave a comment

Chrome: DNS requests with random DNS names: malware?

August 7, 2022 by Magenaut

Over the years (since 2005), I have seen logs of strange random DNS requests done, on the multiple DNS / BIND servers I have maintained.

Categories Q&A, Unix & Linux Tags chrome, dns, security Leave a comment

Is data=journal safer for Ext4 as opposed to data=ordered?

August 7, 2022 by Magenaut

The default journal mode for Ext4 is data=ordered, which, per the documentation, means that

Categories Q&A, Unix & Linux Tags ext4 Leave a comment
Older posts
Newer posts
← Previous Page1 … Page294 Page295 Page296 … Page371 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