Results for awk
I have this simple file "lista_file" created every day dynamically: Fri Oct 20 20:47:58 CEST 2023 ANDREA_20231013_000002_10800s+60s_rec-uk-london-03.m...
1st tab separated file1: chr1 10031 10031 -> chr1 10061 10061 chr1 10037 10037 -> chr1 10047 10047 chr1 10043 1...
I have three column file like this below. I want to divide column 3 by column 2 (ignoring headers) and print it in column 4. Also, I want to calculate...
I'm trying to get first field value using awk field separator, but it is failing as below. Same is working fine when i'm trying with echo manually. Fa...
I wrote a awk program which give me the result i needed. Finding any line beginning with 130AB : if the 2nd field contain data, move it on the 9th fie...
I'm trying to extract version numbers from lines in a file like below: grep abc | awk '{print $3}' somefile and getting multiline output as: 7.2.5.200...
Suppose I've got a log file like this (1st column is a timestamp): 1699740442177 Start A 1699740442177 Start B 1699740442255 Start C 1699740442261 Fin...
I have this bind dns stats text file, sample_data.txt: +++ Statistics Dump +++ (1698804161) ++ Incoming Requests ++ 34199522 QUERY ...
I have two directories in /home/: dirA and dirB. Files in dirA: fileA.txt fileB.txt fileC.txt Files in dirB: fileA.yaml fileB.yaml fileC.yaml Expected...
I have a set of data that consists of seismic wave travel times and their corresponding information (i.e. source that produced the wave and the time f...
This is data.txt: +----------------------------+---------+-------------------+ | Hostname | Plan | Server | +---------...
I am using the following awk (from my previous post - how to get list of folders that older then 30 days ) in order to print the folders that are olde...
Using AWK command to skip first line and determine if a '/' is in specific column which happens to be a date in a CSV file, although for my request t...
For context, I am trying to do some simplistic localization, as a first step into that "ocean", with limited language options. I want to be more "inc...
I have two files one which includes 3 columns, called Chromosome and Gene_start Gene_end. The first column contains a number and Gene_start Gene_end c...
I am trying to add this variable (it takes the batch job number and extracts the ID from a text file, with one ID being a new row) so that it can be i...
Trying to use awk to substitute duplicated value by a "counter" I have this example list: (there is duplicated mac ba484ebce594, but the duplicates wo...
I have a load of csv files, but they are not clean. They use "|" as a seperator. Some of the files have a trailing "|" after line one, meaning there i...
Using awk (not gawk) I would like to iterate through one of two arrays, depending on the value of a separate variable. One array contains a subset of ...
I'm getting this warning from awk, when it processes a long file on a server: Invalid multibyte data detected. There may be a mismatch between your da...
I have a csv file that contains lines such as 1 Er6 Te100 7.02455 1 0 0 -0.00420 2 Cu7 ...
I have the following input file: -0.805813 0.874753 -0.776101 -0.749147 -0.636834 0.379035 -0.004061 -0.004061 -0.426119 -0.024801 -0.041989 -0.783...
I have a dataset that looks like the below: col1,col2,col3,col4 read1,chr1,Unassigned_NoFeatures, read2,chr2,Assigned, read3,chr3,,Assigned What I wan...
This is file-old.txt: nextduedate: '2023-09-06' dedicatedip: 1.1.1.1 nextduedate: '2023-09-01' dedicatedip: 2.2.2.2 nextduedate: '2023-09-08' dedicate...
I have a data file with following format: 1 3 2 3 5 2 3 2 4 3 3 3 2 2 4 4 3 2 2 -6 5 3 2 2 -4 I would like to linearly interpolate...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?