Search Results

Search: Posts Made By: Adriel
8,119
Posted By Adriel
using Grep with a tab
how can i use grep to search a file with a tab, for example


grep -l "Text<TAB>Text" *.txt
1,537
Posted By Adriel
www.cygwin.com
www.cygwin.com
4,698
Posted By Adriel
what about /etc/haltsys -d
what about
/etc/haltsys -d
5,227
Posted By Adriel
I know this is a pretty simple while loop, but...
I know this is a pretty simple while loop, but can you explain it?
5,227
Posted By Adriel
thanks, that did it :)
thanks, that did it :)
5,227
Posted By Adriel
also - the number pattern can be anywhere on the...
also - the number pattern can be anywhere on the line in the second file so it needs to find the pattern then substitue the whole line in its place...
1,439
Posted By Adriel
Do i use grep for this?
say i have file1

1
1
1
3
4
5

and file2

1 hello i am 1
2 hello i am 2
3 hello i am 3
4 hello i am 4
5 hello i am 5

when i grep this i need this result
1 hello i am 1
1 hello i...
5,227
Posted By Adriel
say i have file1 1 1 1 3 4 5 ...
say i have file1

1
1
1
3
4
5

and file2

1 hello i am 1
2 hello i am 2
3 hello i am 3
4 hello i am 4
5 hello i am 5

when i grep this grep -f file1 file2 i need the result below
...
5,227
Posted By Adriel
the search is cutting out the doubles - it should...
the search is cutting out the doubles - it should be a one for one match all the way down. apparently i am doing something wrong.
5,227
Posted By Adriel
grep -f question
when using grep -f file1 file2

if you have multiple entries in the pattern file1 that are the same will it take the line out of file2 that matches file1 each time it comes up? if not by default...
3,550
Posted By Adriel
the grep option all the sudden started working -...
the grep option all the sudden started working - must have been the list size or something....when i split it up it started working...
3,550
Posted By Adriel
i need to take all lines in the second file that...
i need to take all lines in the second file that contain the hex numbers in the first and put them into another file.
3,550
Posted By Adriel
i run the script and it does nothing.
i run the script and it does nothing.
3,550
Posted By Adriel
would if i could - im sure its useless if no one...
would if i could - im sure its useless if no one knows what it is - but it for work so, you know how that goes :D
3,550
Posted By Adriel
can't post it.
can't post it.
3,550
Posted By Adriel
tried that - when i try to run the script - i get...
tried that - when i try to run the script - i get "command not found" even after i did 755 on permissions. - disregard this one - forgot to set the perl directory. :D
3,550
Posted By Adriel
no - the whole file does not match the list.
no - the whole file does not match the list.
3,550
Posted By Adriel
is that the exact command? say "hexlist" is the...
is that the exact command? say "hexlist" is the list file and "searchlist" is the search file, i typed:

grep -f hexlist searchlist > results

all it did was copy searchlist to results.
3,550
Posted By Adriel
wow, thank you for the fast reply - i was looing...
wow, thank you for the fast reply - i was looing all over the internet for how to do that with no avail. :)
3,550
Posted By Adriel
Question about GREP
I have 2 files, in one file is a list of hex numbers, the other is what i need matched. Is it possible for me to specify to grep the list and have it go through the second file for each item in the...
Showing results 1 to 20 of 20

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