Search Results

Search: Posts Made By: clippertm
1,290
Posted By Aia
Pipe it? find . -path './*' -prune -type f...
Pipe it?

find . -path './*' -prune -type f -name '*20161212*' ! -name '*.out' -exec strings {} + | grep something
1,290
Posted By Aia
Please, test the following: find . -path...
Please, test the following:

find . -path './*' -prune -type f -name '*20161212*' ! -name '*.out' -exec strings {} +
3,625
Posted By Chubler_XL
Sorry I misinterpreted your requirements and...
Sorry I misinterpreted your requirements and believed you had a number of values in the range of 00 thru 99 and not all the values.

to match any two digit number I would use:

strings *.* | grep...
3,625
Posted By Aia
'ABC.{134}10' ABC = 3 .{134} = 134 10 = 2 ...
'ABC.{134}10'
ABC = 3
.{134} = 134
10 = 2
The 1 from the number 10 is found WITHIN a string of 138 matched elements and the 0 from 10 will be WITHIN a string of 139 matches.
There is no anchor...
3,625
Posted By Chubler_XL
You could try this: strings *.* | grep...
You could try this:

strings *.* | grep "ABCD" | cut -c 521-522 | egrep '(10|11|20)' | sort | uniq

If your list of values is quite long you could put them in a file with 1 line per value and use...
11,755
Posted By MadeInGermany
With awk: awk -F "|" ' # hash the search list...
With awk:
awk -F "|" '
# hash the search list
NR==FNR {L[$1]=0; next}
# now procede with the data files
# print if the following is true
($4~/^3078=/ && ($2 in L) && L[$2]++==0)
'...
11,755
Posted By Lucas_0418
Sorry clippertm, I think the problem of...
Sorry clippertm,
I think the problem of output all occurences is that we used the wildcard *.*
so maybe we must use sort after grep
Or use perl or awk as apmcd47 say, u know, both...
11,755
Posted By apmcd47
Your first problem is that you need to match the...
Your first problem is that you need to match the patterns in your pattern file with the second field. You cannot just use grep -f list.txt. You really need to use awk or perl. You can then...
11,755
Posted By Lucas_0418
Sorry clippertm, I made a mistake, delete...
Sorry clippertm,
I made a mistake, delete the double plus.
grep -h '4=[745-755]' *.* | grep '3078=' | sort -u -t'|' -k2,2?
If [745-755] is not available, use this:
grep -h...
160,678
Posted By complex.invoke
Tetris Game -- The Art Of Shell Programming
GitHub - deepgrace/tetris: Tetris implementation in all kinds of Programming Languages (https://github.com/deepgrace/tetris)

Usage: bash Tetris_Game [ <runlevel> [ <previewlevel> [ <speedlevel> [...
Showing results 1 to 10 of 10

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