DORSETRIGS
Home

awk (49 post)


posts by category not found!

AWK: return value to shell script

AWK Returning Values to a Shell Script In the world of shell scripting AWK is a powerful tool that is often used for processing and analyzing text data One comm

3 min read 08-10-2024 22
AWK: return value to shell script
AWK: return value to shell script

Capitalize strings in sed or awk

How to Capitalize Strings Using sed and awk In the world of Unix based systems text processing is a daily task that programmers and system administrators often

2 min read 08-10-2024 24
Capitalize strings in sed or awk
Capitalize strings in sed or awk

Handling arbitrary arguments portably in AWK

Handling Arbitrary Arguments Portably in AWK AWK is a powerful text processing language but its handling of command line arguments can be tricky especially when

2 min read 07-10-2024 24
Handling arbitrary arguments portably in AWK
Handling arbitrary arguments portably in AWK

sed insert a line before the last string in a certain pattern

Inserting a Line Before the Last String in a Specific Pattern Using sed Problem You have a file with a specific pattern and you need to insert a line before the

2 min read 07-10-2024 44
sed insert a line before the last string in a certain pattern
sed insert a line before the last string in a certain pattern

How to separate column using character length with AWK

Separating Columns with AWK A Character Length Approach Have you ever encountered a dataset where columns arent neatly separated by delimiters like commas or sp

2 min read 06-10-2024 45
How to separate column using character length with AWK
How to separate column using character length with AWK

How do I format email name and address when there is a comma inside string?

Decoding the Comma Chaos Formatting Email Addresses with Internal Commas Sending emails is a daily routine for many of us but what happens when a name or addres

2 min read 06-10-2024 47
How do I format email name and address when there is a comma inside string?
How do I format email name and address when there is a comma inside string?

Find common lines to multiple files

Finding Common Lines Across Multiple Files A Practical Guide Have you ever found yourself needing to identify lines of text that appear in multiple files This i

2 min read 06-10-2024 49
Find common lines to multiple files
Find common lines to multiple files

How to compare two columns of two CSV files with awk?

Comparing Columns in CSV Files with awk A Simple and Efficient Approach Problem You have two CSV files with similar data and you want to compare specific column

2 min read 06-10-2024 41
How to compare two columns of two CSV files with awk?
How to compare two columns of two CSV files with awk?

Regex for whitespace delimiter except for [ and ] characters

Mastering Whitespace Delimiters Excluding Brackets with Regex Regular expressions regex are powerful tools for pattern matching in text One common task is to sp

less than a minute read 05-10-2024 45
Regex for whitespace delimiter except for [ and ] characters
Regex for whitespace delimiter except for [ and ] characters

How to make a strict match with awk

Awk Achieving Strict Matches for Precise Data Manipulation Awk is a powerful command line tool widely used for data manipulation and text processing While it ex

2 min read 05-10-2024 39
How to make a strict match with awk
How to make a strict match with awk

BASH extract data with conditions from multiple csv files, sort data and remove doubles. Need to speed up process

Speeding Up Data Extraction and Processing from Multiple CSV Files with Bash Extracting data from multiple CSV files applying conditions sorting the results and

3 min read 05-10-2024 37
BASH extract data with conditions from multiple csv files, sort data and remove doubles. Need to speed up process
BASH extract data with conditions from multiple csv files, sort data and remove doubles. Need to speed up process

Extract the logs that are logged within 2 timestamps

Extracting Logs Between Two Timestamps A Comprehensive Guide Logging is an essential part of any application providing valuable insights into its performance us

2 min read 30-09-2024 44
Extract the logs that are logged within 2 timestamps
Extract the logs that are logged within 2 timestamps

Print lines from their beginning to selected characters

Print Lines from Their Beginning to Selected Characters In programming especially when dealing with strings it is common to extract parts of a string based on s

2 min read 30-09-2024 42
Print lines from their beginning to selected characters
Print lines from their beginning to selected characters

Iterating and saving files with new headers and names in bash

Iterating and Saving Files with New Headers and Names in Bash When working with multiple files in Bash you may often find yourself needing to iterate through ea

2 min read 25-09-2024 59
Iterating and saving files with new headers and names in bash
Iterating and saving files with new headers and names in bash

How to count a pattern inside a phrase?

How to Count a Pattern Inside a Phrase Counting specific patterns within a phrase is a common task in programming and text analysis In this article we will expl

2 min read 23-09-2024 47
How to count a pattern inside a phrase?
How to count a pattern inside a phrase?

How to convert a string to a sequence of integers corresponding to the Unicode code points, and vice versa?

How to Convert Strings to Unicode Code Points and Vice Versa in Python In programming particularly when working with text data understanding how to manipulate s

2 min read 22-09-2024 70
How to convert a string to a sequence of integers corresponding to the Unicode code points, and vice versa?
How to convert a string to a sequence of integers corresponding to the Unicode code points, and vice versa?

linux extraction for log output not grouping correctly

Troubleshooting Linux Log Extraction Ensuring Correct Grouping When working with logs in Linux it is common to encounter problems with data extraction particula

2 min read 20-09-2024 60
linux extraction for log output not grouping correctly
linux extraction for log output not grouping correctly

Filtering multi string file according to multiple patterns

Filtering Multi String Files According to Multiple Patterns In many data processing scenarios there arises a need to filter out certain strings from a file base

3 min read 17-09-2024 45
Filtering multi string file according to multiple patterns
Filtering multi string file according to multiple patterns

Word Boundary in awk

Understanding Word Boundaries in Awk A Comprehensive Guide When working with text processing in awk a powerful command line tool for pattern scanning and proces

2 min read 16-09-2024 44
Word Boundary in awk
Word Boundary in awk

Why does the “match” function not work in this particular situation?

Understanding the MATCH Function Troubleshooting Common Issues Introduction to the Problem The MATCH function in Excel is a powerful tool that helps users find

2 min read 14-09-2024 46
Why does the “match” function not work in this particular situation?
Why does the “match” function not work in this particular situation?

Keep only species name in FASTA header

How to Retain Only Species Name in FASTA Headers Problem Scenario In bioinformatics FASTA format is widely used for representing nucleotide or protein sequences

2 min read 14-09-2024 46
Keep only species name in FASTA header
Keep only species name in FASTA header

How to create AWK scripts with shebang that allows in-place modifications?

Mastering In Place Modifications with AWK Scripts and Shebang Lets dive into the world of AWK scripts a powerful tool for text processing One common requirement

2 min read 13-09-2024 83
How to create AWK scripts with shebang that allows in-place modifications?
How to create AWK scripts with shebang that allows in-place modifications?

Is there still any reason to learn AWK?

Is AWK Still Relevant in 2023 The world of programming is constantly evolving and with it comes a constant stream of new tools and technologies Its natural to w

2 min read 07-09-2024 62
Is there still any reason to learn AWK?
Is there still any reason to learn AWK?

How to replace newlines with tab characters?

Replacing Newlines with Tabs A Guide to sed and awk You re trying to transform a multi line text snippet into a single line replacing newlines n with tab charac

less than a minute read 07-09-2024 53
How to replace newlines with tab characters?
How to replace newlines with tab characters?

Print all but the first three columns

Printing All But the First Three Columns in a File A Concise Approach Lets say you have a data file and you want to print all the columns except the first three

2 min read 07-09-2024 49
Print all but the first three columns
Print all but the first three columns