Skip to content

Magenaut

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

files

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

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

Create sub-directories and organize files by date

August 7, 2022 by Magenaut

I have some directories of files copied from my security camera that I would like to organize into sub-directories by file date. So for example;

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

Verifying a large directory after copy from one hard drive to another

August 7, 2022 by Magenaut

I have a home file server that I use Ubuntu on.

Categories Q&A, Unix & Linux Tags checksum, file-copy, file-transfer, files, ubuntu Leave a comment

A command line utility to visualize how fast a file is growing?

August 7, 2022 by Magenaut

I want to grok how fast a particular file is growing.

Categories Q&A, Unix & Linux Tags command-line, files Leave a comment

Who creates /etc/{group,gshadow,passwd,shadow}-?

August 7, 2022 by Magenaut

In any linux system I have access to (a couple of Archlinuxes, an Ubuntu, a Debian Sid and a Gentoo) there are the following 4 files in /etc/, all ending with a dash:

Categories Q&A, Unix & Linux Tags etc, files, linux Leave a comment

Merge 2 files based on all values of the first column of the first file

August 6, 2022 by Magenaut

I need to merge below 2 files:

Categories Q&A, Unix & Linux Tags awk, files, join, merge Leave a comment

How to know if a text file is a subset of another

August 6, 2022 by Magenaut

I am trying to find a way to determine if a text file is a subset of another..

Categories Q&A, Unix & Linux Tags diff, file-comparison, files, text, vimdiff Leave a comment

How to change the default program for a chosen file type system-wide in kde or xfce?

August 6, 2022 by Magenaut

I would like to have files of a chosen type (by their extension) to open with some specific programs. Which configuration files do I need to edit?
I’ve tried some in /usr/share/appplications/default.list but it doesn’t work.

Categories Q&A, Unix & Linux Tags files, freedesktop, kde, xfce Leave a comment

How to set file permissions with touch command

August 6, 2022 by Magenaut

It seems that whenever I create a file with touch the permissions are set to: -rw-r–r–.

Categories Q&A, Unix & Linux Tags files, permissions, touch Leave a comment
Older posts
Newer posts
← Previous Page1 … Page12 Page13 Page14 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