Search Results

Search: Posts Made By: stresing
10,738
Posted By stresing
Thank you RudiC! That's exactly what I needed! ...
Thank you RudiC! That's exactly what I needed!
Many regards
Stephan
10,738
Posted By stresing
Grep: show only first match per line?
Hi,

can I make grep stop after finding the first occurrence of a regex in a line?

Given:

file with various regex patterns
file to be grep'ed

Sadly some of the regex patterns cannot be...
10,068
Posted By stresing
Thank you for your explanation! Now I've got it!...
Thank you for your explanation! Now I've got it! :cool:



Yeah, you could bet on it... ;)

---------- Post updated 04-10-15 at 04:56 PM ---------- Previous update was 04-09-15 at 07:23 PM...
10,068
Posted By stresing
Yeah, that's what I wanted to see! :D Could...
Yeah, that's what I wanted to see! :D

Could you please explain why it didn't work out with a simple ".*" instead of the more exact "[^|]*\|[^|]*\|[^|]*\|[^|]*\|"? I'm not that familiar with the...
10,068
Posted By stresing
To be more precise: I have a shell script...
To be more precise:

I have a shell script which calls a grep command (and does some more postprocessing).
This grep uses a file that holds a bunch of regexes and one of the regexes should be able...
10,068
Posted By stresing
Grep with regex containing one string but not the other
Hi to you all,

I'm just struggling with a regex problem and I'm pretty sure that I'm missing sth obvious... :confused:

I need a regex to feed my grep in order to find lines that contain one...
3,274
Posted By stresing
Thanks for the hint. I think I will move...
Thanks for the hint.

I think I will move that step to the postprocessing step since the result file of the main grep process will be much smaller than the original files.
3,274
Posted By stresing
Regex: print matched line and exact pattern match
Hi experts,

I have a file with regexes which is used for automatic searches on several files (40+ GB).

To do some postprocessing with the grep result I need the matching line as well as the...
1,916
Posted By stresing
Oh, yes, sometimes life can be really easy! :-)...
Oh, yes, sometimes life can be really easy! :-) But sometimes I can't see the wood for the (christmas) trees... :wall:

Thank you!

Stephan
1,916
Posted By stresing
Take quoted output from one script as quoted input for another script
Hi,

I have a script output.sh which produces the following output (as an example):
"abc def" "ghi jkl"

This output should be handled from script input.sh as input and the quotes should be...
11,609
Posted By stresing
Wow, that's a really nice solution. I never would...
Wow, that's a really nice solution. I never would have found that on my own - of course, that's the reason why I post to the Dummies forum... :rolleyes: Thank you!
11,609
Posted By stresing
Hey, thanks for your fast reply! I don't...
Hey, thanks for your fast reply!

I don't care about pretty solutions - it works and that's important to me! I just tested on my real file and that's what I looked for!

Maybe one day I have the...
11,609
Posted By stresing
Finding nth occurrence in line and replacing it
Hi,

I have several files with data that have to be imported to a database. These files contain records with separator characters. Some records are corrupt (2 separators are missing) and I need to...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 04:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy