Skip to content

Magenaut

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

text-processing

sed with multiple expression for in-place argument

August 7, 2022 by Magenaut

I am trying to replace multiple words in a file by using

Categories Q&A, Unix & Linux Tags sed, shell, shell-script, text-processing Leave a comment

Printing unique lines

August 7, 2022 by Magenaut

Is there some better solution for printing unique lines other than a combination of sort and uniq?

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

Horizontal file concatenation

August 7, 2022 by Magenaut

Is there a Linux command like cat that joins files with the same number of lines horizontally?

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

Convert rows to columns

August 7, 2022 by Magenaut

I have a file that includes details about VMs running in a hypervisor. We run some command and redirect the output to a file. And the is data available in the below format.

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

Merge alternate lines from two files

August 6, 2022 by Magenaut

File1:

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

Editing config file via a bash script

August 6, 2022 by Magenaut

I’ve been trying to write a simple bash script which I’ll be using to install an application and update it’s config file. I’m having hard time to have get it’s config file modified.

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

Remove all the lines before the first line that contains a match?

August 6, 2022 by Magenaut

Using the regexp string, how can I remove all the lines before the first line that contains a match? e.g How can I change this:

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

How to grep -v and also exclude the next line after the match?

August 6, 2022 by Magenaut

How to filter out 2 lines for each line matching the grep regex?
this is my minimal test:

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

Finding text between two specific characters or strings

August 6, 2022 by Magenaut

Say I have lines like this:

Categories Q&A, Unix & Linux Tags regular-expression, text-processing Leave a comment

How to “grep” for line length *not* in a given range?

August 6, 2022 by Magenaut

NOTE: This question is the complement of this Q&A: How to “grep” for line length in a given range?

Categories Q&A, Unix & Linux Tags grep, regular-expression, text-processing Leave a comment
Older posts
Newer posts
← Previous Page1 … Page13 Page14 Page15 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