I want to remove all duplicates from a file but ignoring the first 2 columns, I mean don't comparing those columns. This is my example input: I wa ...
I want to remove all duplicates from a file but ignoring the first 2 columns, I mean don't comparing those columns. This is my example input: I wa ...
I need to print the whole output sorted based on 'Resident Set Size' value. Process: wccpd Memory (bytes) Total Virtual Size 29.5 Resident Set Size 4 ...
I try to filter a text file based on a second file. The first file contains paragraphs like: The second file contains a list of strings like this: ...
Given the following example URLs: urls.txt I'm using this command: awk 'BEGIN{FS=OFS="/"}{if ($6~/^raw$/){$3="raw.githubusercontent.com"; for(i=0 ...
I have been writing a script which will run in while loop infinite times If all condition are met then only the script will break and execute another ...
I am bit stuck with this how do I check all keyword should exist in my text If any one keyword is not present then it should return me status : 1 or ...
I would like to use miller (mlr) to convert column names to lower case. The closest I get is using the rename verb with a regular expression. \L shoul ...
I'm trying to run the above code in google collab, but it gives the following error: unbalanced parenthesis at position 4 My undesrtanding from the ...
I have a text which looks like - I want the number from the count:1 columns so 1 and i wish to store these numbers in an array. nums=($(echo -n "$ ...
How can I extract the branch name from a string using bash? For example, I have the following command: branch=$(git branch -a --contains $sha) This ...
I have a Endote Export File, looking like this: the field beginning with %+ contains the Author Address which could consits of more lines according ...
I have two files, one has the data that is transactional value for that column. Suppose currency code and the another file has the valid/expected curr ...
I am very new in this. I am trying to extract some text from my access log in a new file. My log file is like this: I want to extract in below form ...
I've large text file that looks like I want an output like I tried some strange, obviously faulty regex like %s/\w*\n/ /g but can't really get m ...
How can I efficiently remove enclosing brackets from a file with bash scripting (first occurrence of [ and last occurrence of ] in file)? All brackets ...
I wanted to get some information about my CPU temperatures on my Linux Server (OpenSuse Leap 15.2). So I wrote a Script which collects data every 20 s ...
How can I remove the config section that contains config B2 in the following file using bash? Any quick solution using sed or awk or similar? The diff ...
I'm using miller to process some CSV files like so: mlr --mmap --csv --skip-comments -N cut -f 2 my.csv It works well, but some of the CSV files co ...
I have a file with text as follows: I want to extract all strings between ### . My desired output would be something like this: I have tried th ...
I am working on a bash script that can add nginx location blocks to a file taking in a URL. To prevent duplicates this script will also remove them if ...