Skip to content

Magenaut

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

awk

split file into two parts, at a pattern

August 8, 2022 by Magenaut

How to split a large file into two parts, at a pattern?

Categories Q&A, Unix & Linux Tags awk, sed, split, text-processing Leave a comment

Command line argument in awk

August 8, 2022 by Magenaut

I just want to implement if condition in awk. I created one file name : “simple_if” as below.

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

Keeping unique rows based on information from 2 of three columns

August 8, 2022 by Magenaut

Suppose you have a file like this:

Categories Q&A, Unix & Linux Tags awk, uniq Leave a comment

Show lines matching a pattern and the 4 lines before each

August 8, 2022 by Magenaut

For example, from this file:

Categories Q&A, Unix & Linux Tags awk, command-line, grep, hp-ux, sed Leave a comment

Are there versions of Unix that don’t have awk in default install?

August 8, 2022 by Magenaut

Are there versions of Unix that don’t have awk installed by default?

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

Average rows with same first column

August 8, 2022 by Magenaut

Given a file with two columns:

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

How to find what device a file is on (and use that in a script)?

August 8, 2022 by Magenaut

I want to find out what device my file is on so that I can use it in a script. I can get this far:

Categories Q&A, Unix & Linux Tags awk, files, sed, shell Leave a comment

Comparing two files using Unix and Awk

August 8, 2022 by Magenaut

I need to compare two files, File1 and File2 (Separated by space) using 4 fields (Field 1, 2, 4 and 5 of File 1 with field1, 2, 4 and 5 of File2).

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

comparing the first column of two files and printing the entire row of the second file if the first columns match

August 8, 2022 by Magenaut

I have two files in these formats:

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

Merging two files, one column at a time

August 8, 2022 by Magenaut

I have 2 large files (3000 columns, 15000 rows) of the following format

Categories Q&A, Unix & Linux Tags awk, data, merge, sed, text-processing Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page9 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