I have a very large (1.5 GB) malformed CSV file I need to read into R, and while the file itself is a CSV, the delimiters break after a certain number ...
I have a very large (1.5 GB) malformed CSV file I need to read into R, and while the file itself is a CSV, the delimiters break after a certain number ...
I have lots of files in every year directory and in each file have long and large sentence like this for exmaple List item home/2001/2001ab.tx ...
Suppose I have a dataset "df" as below How to delete all rows except those belonging to groups "b" and "d" (or those belonging to any combination of ...
I need to colour output using ANSI color for example in blue then we cat a file. But if we grep word error in file this words must be colored red I t ...
I want to do some kind of present-absence analysis. I have three different protein files and I want to identify/extract proteins (they are in simple t ...
I need a quick and easy way to know how many dlls are 32-bit and how many are 64-bit in a given directory. I was about to write a PowerShell script wh ...
I'm searching for port numbers with grep (in a bash script) portstr now looks something like this now I want to extract the numbers between the ...
I would like to find IP addresses and user agents that have made more than 10 server requests per second. Help me, please. How can I do this? Maybe wi ...
I tried to write a code in regex101.com to identify any kind of email address. The general email address formats are like this: rohan.singh@example. ...
I use grep -E '^[ 0-9]{6}$' to grab strings of 5 digits (numbers or space) in files It returns: 71 051 17 293 017299 862610 But is it possible to ...
This question was migrated from Stack Overflow because it can be answered on S ...
I tried to see if radio station is broadcasting silence. Due to this test purpose I removed --quiet from grep and reversed Sound Off to Sound On that ...
I have a bunch of files that need merging. The name of the files are something like this- I want to merge JOHN_80_xyz_yeti.txt and JOHN_80_def_yeti ...
I have a text file in this format: address,name,name2,count,junk I want to search (using regex or grep on linux) for lines that "count" are over a c ...
I would like to print the last line above the command, only if the line starts with "#" and there is no space or tab before it, even if there is an em ...
I have a grep command that finds rows in a file, passes those to awk and prints out the 1st and 15th columns. So far, so good. This results in a li ...
I'm trying to do a simple script that if the "grep" comes with results, send the email with the results. But I want also to send an email if there is ...
To clarify a bit, while I am aware how to grab words with a single specific character, I'm unsure how to approach looking for multiple of them. For ex ...
I have the following in my .vimrc which (I believe) makes :grep within Vim use rg: I want to search for all definitions of functions named render.. ...
I have below content in my file abcd.yml with below indentation: Tried the below : But it is removing all the occurrence of the above strings fr ...