Skip to content

Magenaut

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

text-processing

Sed — Replace first k instances of a word in the file

August 7, 2022 by Magenaut

I want to replace only the first k instances of a word.

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

Convert between Unicode Normalization Forms on the unix command-line

August 7, 2022 by Magenaut

In Unicode, some character combinations have more than one representation.

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

Why does a bash here-string add a trailing newline char?

August 7, 2022 by Magenaut

The following examples show that a newline is added to a here-string.
Why is this done?

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

Delete last line from the file

August 7, 2022 by Magenaut

I use sed to quickly delete lines with specific position as

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

Find any lines exceeding a certain length

August 7, 2022 by Magenaut

Is it possible to find any lines in a file that exceed 79 characters?

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

combine text files column-wise

August 7, 2022 by Magenaut

I have two text files. The first one has content:

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

How can I split a text file into multiple text files?

August 7, 2022 by Magenaut

I have a text file called entry.txt that contains the following:

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

How to delete the rest of each line after a certain pattern or a string in a file?

August 7, 2022 by Magenaut

Suppose I have a list of URLs in a text file:

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

How can I delete everything until a pattern and everything after another pattern from a line?

August 7, 2022 by Magenaut

In the following file:

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

Split a file into two

August 7, 2022 by Magenaut

I have a big file and need to split into two files. Suppose in the first file the 1000 lines should be selected and put into another file and delete those lines in the first file.

Categories Q&A, Unix & Linux Tags awk, csplit, split, text-processing Leave a comment
Older posts
Newer posts
← Previous Page1 … Page11 Page12 Page13 … 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