So pulling open a file with cat and then using grep to get matching lines only gets me so far when I am working with the particular log set that I am dealing with. It need a way to match lines to a| Unix & Linux Stack Exchange
Input file1 is: dog 123 4335 cat 13123 23424 deer 2131 213132 bear 2313 21313 I give the match the pattern from in other file ( like dog 123 4335 from file2). I match the pattern of the line ...| Unix & Linux Stack Exchange
The regex in this post, explained via Regex101 Some applications can log multiple lines per log entry. PostgreSQL is a good example, when statement logging is turned on. Here's a bare bones example with log_statement set to all: 2025-06-23 22:00:00.000 CEST [6316] LOG: statement: select *| Ian's notes
When parsing a string that is divided by a separator char, getting the first N values OR last N values is a common scenario when dealing with: IP address separated by periods, e.g. “10.11.12.13” File path separated by forward slash “/tmp/myfolder/subpath1/subpath2/subpath3” Fully qualified domain separated by periods “sub1.sub2.my.domain.com” Getting first N values Getting the first ... Bash: extracting first or last N octets, paths, or domain from string with fixed separator| Fabian Lee : Software Engineer
Using grep to do substring extraction in shell scripts.| A Scripter's Notes
Someone in the Golang team thought that it would be a good idea to| A Scripter's Notes
Tips for working with big data in the terminal| Blair’s Science Desk
Hi everybody, just a quick one this week. Again it's been a very busy week, so I wrote this one quick to print the sorted list of all common characters in all the words provided. That's the simple explanation of this week's challenge.| blogs.perl.org