Skip to content

Magenaut

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

text-processing

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

remove lines that contain a specific text in a file

August 8, 2022 by Magenaut

I have a file with a list of emails in it and each line has an email in it. I want to remove lines that contain the string example.com or test.com.

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

Why isn’t this awk command doing a full outer join?

August 8, 2022 by Magenaut

Objective: Merge the contents of two files using common key present in the files

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

non-line-oriented tool for string replacement?

August 8, 2022 by Magenaut

I recently asked a question about how to remove the newline character if it occurs after another specific character.

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

How to add a new text line at the first line of a file?

August 8, 2022 by Magenaut

File: TABLE1 1234 9555 87676 2344 Expected output: Description of the following table: TABLE1 1234 9555 87676 2344 Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or … Read more

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

How to append text to the end of a certain line of a file?

August 8, 2022 by Magenaut

If I needed to append a username to the end line 32 on a file, how would I do so?

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

How can I convert timestamps in a column to a date?

August 8, 2022 by Magenaut

I have a file containing this:

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

How can I get the page numbers only of a pattern in a pdf file, regardless if the pattern is multiline?

August 8, 2022 by Magenaut

I find the page numbers of a multiline pattern in a pdf file, by How shall I grep a multi-line pattern in a pdf file and in a text file? and How can I search a string in a pdf file, and find the physical page number of each page where the string appears?

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

How to use sed command to modify a file’s entry line by line in shell script?

August 8, 2022 by Magenaut

This is my file1:

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

Remove comments in a C file

August 8, 2022 by Magenaut

I am trying to remove comments from a file which may be in any part of a line and span multiple lines. struct my_struct{ field1; field2; /** comment 1 */ field3; /* comment 2 */ } struct_name; I need to get struct my_struct{ field1; field2; field3; } struct_name; I tried using grep -o '[^/*]*[^*/]' to … Read more

Categories Q&A, Unix & Linux Tags grep, sed, source-code, text-processing Leave a comment
Older posts
Newer posts
← Previous Page1 … Page9 Page10 Page11 … 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