Search Results

Search: Posts Made By: Aretai
16,505
Posted By Aretai
Re:
Have I missed anything?

s,/.*$1/,$1/,;}" f

What does f at the end mean. And is it for my own command - i.e. mygrep. Can you tell me the steps to code it? Like: where mygrep should be stored?...
16,505
Posted By Aretai
Re:
OK:

Binary file /opt/users/aretai/test/projects/test/test.txt matches
Binary file /opt/users/aretai/test/projects/test/test1.txt matches
Binary file...
16,505
Posted By Aretai
Re:
thx,

It works v.good. Except there are some files that r matched and r not Binary.
../projects/test.txt:test

I tried to modify sed command, but failed.
Let me know if this is possible
...
16,505
Posted By Aretai
Re:
thx for answer, but I got only some errors (I use ksh):
ksh: command: bad option(s) :(

Do you think it would be possible to make a bash script - new command

mygrep

that would use regular...
16,505
Posted By Aretai
Nah it's not working - just an empty output. Will...
Nah it's not working - just an empty output. Will try to search on PHP forum if you r not that good with PHP as you're with Unix;)

thx

Aretai
16,505
Posted By Aretai
thx anbu23, but there are some problems: 1) In...
thx anbu23, but there are some problems:
1) In fact there is a list of files generated instead of a single file. Is it possible to dynamically strip the unnecessary content?

2) I try to put the...
16,505
Posted By Aretai
OK - seems I've got a non-GNU version of grep :)...
OK - seems I've got a non-GNU version of grep :) . This has been fixed :cool:

Do you know how to strip the output of the grep command :confused:

The output that is produced is something like:...
16,505
Posted By Aretai
@ preetam
Believe me I've checked in the manual. The problem is this is supported only by GNU version of grep (and sadly :( this isn't the case). I thought that there is other solution to this problem.
16,505
Posted By Aretai
It's quite good, but the problem is I use Solaris...
It's quite good, but the problem is I use Solaris and get:
"grep illegal option -r"
"grep -hblcnsviw pattern file"
seems U is also not allowed

(btw. The default behavior is to search only one...
16,505
Posted By Aretai
Re:
Thx for answer - yes I tried this command, but there are some problems...

1) The depth of the search - i.e. search on the file's parent directory is working, but when I try to search from...
16,505
Posted By Aretai
searching for content of files
Hi,

This question may be quite newbish.

I've stored a few files on my Unix system and am wondering how to search for their contents (i.e. I input the keyword and get a list of files with this...
Showing results 1 to 11 of 11

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