Skip to content

Magenaut

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

Unix & Linux

Compare two files for matching lines and store positive results

August 7, 2022 by Magenaut

I have two files. File 1: A0001 C001 B0003 C896 A0024 C234 . B1542 C231 . upto 28412 such lines File 2: A0001 A0024 B1542 . . and 12000 such lines. I want to compare File 2 against File 1 and store the matching lines from File 1. I tried Perl and Bash but none … Read more

Categories Q&A, Unix & Linux Tags bash, file-comparison, files Leave a comment

How to set the core dump file location (and name)?

August 7, 2022 by Magenaut

I am on CentOS 6, trying to enable core dumps for an application I am developing. I have put:

Categories Q&A, Unix & Linux Tags core-dump, linux Leave a comment

Add lines to the beginning and end of the huge file

August 7, 2022 by Magenaut

I have the scenario where lines to be added on begining and end of the huge files.

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

Bind CAPS+hjkl to arrow keys; CAPS to ESC

August 7, 2022 by Magenaut

Currently running Antergos Linux. The set-up I would like to have is the following.

Categories Q&A, Unix & Linux Tags keyboard-shortcuts Leave a comment

whiptail or dialog

August 7, 2022 by Magenaut

I am going to create a script which will use user input, so I decided to use whiptail.

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

How to add a carriage return before every newline?

August 7, 2022 by Magenaut

I have a file that only uses n for new lines, but I need it to have rn for each new line. How can I do this?

Categories Q&A, Unix & Linux Tags grep, newlines, sed Leave a comment

Can vim display ASCII characters only, and treat other bytes as binary data?

August 7, 2022 by Magenaut

I already know vim -b, however, depending on the locale used, it displays multi-byte characters (like UTF-8) as single letters.

Categories Q&A, Unix & Linux Tags ascii, binary, character-encoding, unicode, vim Leave a comment

jq – add objects from file into json array

August 7, 2022 by Magenaut

I want to add an array with elements and value into an existing json file using jq.

Categories Q&A, Unix & Linux Tags array, jq, json Leave a comment

what is the difference between >&2 and &>2

August 7, 2022 by Magenaut

There are two formats for redirecting standard output and standard error:

Categories Q&A, Unix & Linux Tags bash, io-redirection, stderr Leave a comment

Why does Unix store timestamps in a signed integer?

August 7, 2022 by Magenaut

Why is a signed integer used to represent timestamps? There is a clearly defined start at 1970 that’s represented as 0, so why would we need numbers before that? Are negative timestamps used anywhere?

Categories Q&A, Unix & Linux Tags timestamps Leave a comment
Older posts
Newer posts
← Previous Page1 … Page311 Page312 Page313 … 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