Skip to content

Magenaut

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

perl

How can you combine all lines that end with a backslash character?

August 10, 2022 by Magenaut

Using a common command line tool like sed or awk, is it possible to join all lines that end with a given character, like a backslash?

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

Renaming files to have lower case extensions with ‘rename’

August 10, 2022 by Magenaut

I’m trying to currently rename a large set of files and have been using quite kludgy methods to do so, such as:

Categories Q&A, Unix & Linux Tags perl, regular-expression, rename Leave a comment

concatenate lines based on first char of next line

August 9, 2022 by Magenaut

I am looking for away contact lines based on the next line. So far the only way I see is to create a shell script that will read line by line and will do something along these lines:

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

Replace pattern each time with a different string (taken from external file)

August 9, 2022 by Magenaut

I have an input:

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

Format data into a table

August 9, 2022 by Magenaut

How can I get the details and transpose it to horizontal form?

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

convert CSV to XLS file on linux

August 9, 2022 by Magenaut

The following Perl script can convert CSV file to XLS file

Categories Q&A, Unix & Linux Tags awk, bash, linux, perl, shell-script Leave a comment

Replacing missing value blank space with zero

August 9, 2022 by Magenaut

I have input.txt tab-delimited text file around 30K lines, I would like to check each row (s1..s30K lines) for missing value (i.e blank space) and fill the missing value with zero value.See out.txt

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

Replace non-printable characters in perl and sed

August 8, 2022 by Magenaut

I need to replace some non-printable characters with spaces in file.

Categories Q&A, Unix & Linux Tags perl, sed 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 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
Older posts
Newer posts
← Previous Page1 Page2 Page3 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