Something like 'grep' for Android? - G1 Q&A, Help & Troubleshooting

I have a few hundred text files in a folder on my SD card, and I need some way of searching across them. For instance, if I search for 'balloon', it needs to returns the names of the files that contain the word 'balloon', not in the filename, but in the text.
Bonus points if it would allow for wildcards, or allow me to open the result files in an editor or viewer.
Does anyone know of something like this? It's basically a frontend to 'grep' along with a simple GUI.
EDIT: Oh, and before someone mentions it...Aurora does NOT do this. It can search the filenames, but not within the text files.

An up from a dusty cupboard
Very old thread, up !
I'm looking for a command in Android shell, to do the same job as "grep" for Linux/UNIX ?
Someone got an alternative ?
Thanks

Related

How do I link ifonez icons to built in apps?

Hi
I am new to this forum and to HTC. I have set up my new phone with S2UL, Ifonez and Icontact. I have got a number of my apps working fine from Ifonez but I cant seem to find the files or commnads to load Windows Mobile 6 built in applications such as the following
Communication Manager
Task Manager
Programmes.
I have been searching through Google and these forums in order to find out but cant seem to find anything, so sorry if this is an obvious question.
I am also using Icontact Burt edition which is mostly working fine. However I am finding one or two contacts are displaying underneath the top bar so that I cannot really make out the entry. I only discovered it by searching for an entry that I knew was there but couldn't see in the list. Icontact seems to display a screen at a time rather than a continuous list so I am finding it difficult to see who these entries relate to. Is this a bug or am I missing something?
Thanks in advance for any help.
Greg
this thread may help you...
http://forum.xda-developers.com/showthread.php?t=340974
strikeone said:
this thread may help you...
http://forum.xda-developers.com/showthread.php?t=340974
Click to expand...
Click to collapse
Thanks for the quick reply.
If I understand this correctly I create a text file with the appropriate code in it and then rename the file with the extension lnk. Then I point one of ifonez launch icons towards this file. Is that correct?
If it is I still cant seem to see a code for Communication Manager or to open the Programs folder. Have I misunderstood?
You would simply make a .txt file with the "data" of the thing you want to link to, save the file, and then change the extension of the file from .txt to .lnk.
For example, to create a shortcut to Settings>System>Memory>Main, you would make a text document with this in it:
20#ctlpnl cplmain.cpl,4
Save the file as "Memory", and then use a file explorer/manager to change the extension from "Memory.txt" to "Memory.lnk"
The link to the Comm Manager is: 39#"\Windows\CommManager.exe"
The link to the Programs folder [in the Start Menu] is 40#"Windows\Start Menu\Programs\"
Sorry for the delay in replying, I have been caught up with work and unable to look at this forum until now. So thanks for your reply it was really helpful.

[REQ] XML builder for Raph

Hi all
I was wondering how many people here would like to have some sort of way to build an xml which upon completion of a ROM update (which for some us are only day's apart) would change a load of settings to what we want for them
this is just a concept at the moment and i would like to work with someone or the community as a whole to produce a program to do this
the concept i have is as follows:
a simple windows exe Window which has inside it drop down menu's for all of the settings possible (cleartype/text size/regional settings/time zone/notification settings) fields (username for email/password/server addresses/screen name)
and if possible, something to allow us to drag and drop CAB file's into a window which would then also package up the cab's into a folder and spit out/generate the relevant SDCONFIG.txt file
is this at all possible? is there much interest in this?
I can go through and try to find as many of the settings possible and attempt to perhaps find the relevant registry settings even
i would really like to get the ball rolling with this, im sure it could work really well, not only on the raphael, but also on other devices perhaps
please post any interest on this project/concept here and i would really like to do something about this, im about to go and figure out the best way to even code this, however my coding knowledge is about zilch.lol!
.PROVXML files are the ideal place for last minute configuration changes. I'm just starting to explore this avenue and I've found tremendous flexibility in what one can change.
Have a look at the following information ... right from the source
Provisioning Using a ROM Configuration XML File
http://msdn.microsoft.com/en-us/library/bb737254.aspx
Configuration Service Provider Reference for Windows Mobile-Based Devices
http://msdn.microsoft.com/en-us/library/ms889539.aspx
There's also some excellent thread on XDA ... you'll have to do a bit of searching for them.
HTH,
have you looked at oemizer?
Assume this is the one you mean: http://tiermann.net
... takes the fun out of doing this the "manual way"
Cheers,
I don't use it personally. I came across it when I was learning with my M3100 (Hermes) and it provided a few useful insights at the time when I disected what it had created. I found a few problems and don't use it, but it seems like a similar attempt to what the OP is trying to achieve.
many thanks for the replies
im just looking into the oemizer that was posted and see how that works, however, i get the impression that its for rom cooking
Hi duke_stix,
That's where it's often used ... although, I have come across some posts about utilities that can re-initiate Provision XML files already present on the device or new ones placed on an SD card.
*EDIT* - Some examples
DotFred's Task Manager: http://www.dotfred.net/TaskMgr.htm
HTCustom: http://shadowmite.com/forum/viewtopic.php?f=28&t=2231&p=7890#p7890
Cheers,
I have not seen anything that does exactly what you suggest, but things to look at that are maybe related include
Sashimi
tier-autoinstall (or something like that)
They run the files but don't create them.
You can always just export the reg values and then import them after you flash...
or use a reg to xml program to add it to SDConfig
I'm working on a new app right now that might have the potential to cover what you're asking for, but the exact features necessary to pull off at least a part of it won't be available in the first release. Keep an eye out on the D&H forum in anywhere from a week to two weeks when I post it up there.

Text Editor on Android...

... with a search feature. Does it exist?
I'm currently using Text Edit, but it's pretty horrible for large text files, and doesn't have searching. I use Vi sometimes, but that's just a pita.
Anyone know of a free text editor with search capabilities?
I gotta say, vi, though even more vim (the "enhanced" version) is probably one of the very best (if not ABSOLUTELY the best) text editors ever written. Yes, it does have a *VERY* steep learning curve, but when you really get to know it well, there is absolutely no faster or more powerful way of editing text files.
Yeah, I'm not a fan of Vi.
Does anyone know any other alternatives? Perhaps, is there a way to use nano?
Is there *ANY* other way to edit a text document aside from Text Edit and Vi??
documents to go?
quickoffice?
djind said:
documents to go?
quickoffice?
Click to expand...
Click to collapse
QuickOffice can only open/view files; it cannot edit at all. And Documents to Go is too expensive for my budget. (I only need .txt file editing anyway.)
I guess I should rephrase: Is there ANY other FREE way to edit a text document on the G1 aside from Text Edit and Vi?
Are the text editing options on the G1 really that limited?
Pick your favorite open source console text editor and compile it for arm.
lbcoder said:
Pick your favorite open source console text editor and compile it for arm.
Click to expand...
Click to collapse
How would I go about this? Any guides on here that explain this?
Yeah give me pico.
This task really isn't for newbs, but here's an idea of what is involved anyways:
http://android-tricks.blogspot.com/
I have done some searching, I cant find a text editor that I like. I would like one that can run with SU privileges so I can modify scripts I keep in /system/sd. If I need to I can remount it so that it would save, that wouldnt be a big deal, I would just like to not have to move them to my sdcard, edit, then move back.
I am also not familiar with linux so vi isnt for me if that would work, just looking for a decent alternative with a GUI if possible.
There used to be a cool app in the market called ptexteditor or something but its gone now
Somebody please compile nano... If I knew how to do it... I would... but I'm too noob for the instructions that were given a few posts back...
ES File explorer
For editing text files you could use ES File explorer. I found I was able to open, edit and save my userinit.sh and user.conf. This is quite enough for me!
Sure enough, it is not able to open /system/sd, but it's ok, because you can copy the files from the terminal. You could even make a simple script that would do it for you..
Until someone compiles nano or vim
I'm bringing this thread back from the dead simply because this thread is the first Google result from XDA for text editors, and the discussion here is the exact one that was going on in my head (around vi and nano). I eventually found 920 Text Editor, which has programmatic syntax highlighting, root mode, and is free:
https://play.google.com/store/apps/details?id=com.jecelyin.editor
Thanks,
Ben
also to be considered is this thread about 'nano' the terminal-based editor -- http://forum.xda-developers.com/showthread.php?t=552287

local full text search?

I've been looking around for a while, but without much success. What I need is the following:
A small search app that can perform full text search over a folder of local files on the SD (txt, html, maybe others). It's important that it doesn't search online, or at least can be told to limit the search to local files.
Has anyone encountered something like that?
aFile does that. There's a free, and paid version. I'm pretty sure its available in the free one, I have the paid and it works in that. You can search the system folders too.
Hmm...maybe I'm just too dense, but I can't seem to get aFile to search within the files, just the file name. Also, I can't stop it from search online too.
I also tried Aurora, but the problems are the same.
Basically, what I need is a version of grep that is useable on the G1.
I too am looking for an app that can do a text search inside a folder containing several text files. Grep can do that on Linux, but it seems to need root access on the Rogers HTC Dream.
Request:
App that can Text search inside files in a specified folder on the SD card.

[Q] Excel & Word App?

Does anyone know a good app I can download view and edit Excel or Word files on? I have tried:
OfficeSuite
E-cell xls
Word To Go
I have attached a copy of the Excel file I am trying to manipulate on the G-Tab. I am able to open, view, and edit the file (well sort of edit). If you view the file file via Excel on you computer you will see it has "check boxes" but I am not able to see them on any of the above mentioned apps. Does anyone know of an app that I can do this with?
The form is being created for use in a physicians' clinic, to help avoid the the clutter of paper and eligible writing.
I was not able to upload (size limit) the Word file I want to be able to edit. But this file is filled with "drop down" menus which do not show up when opened on the G Tab.
Any help would be greatly appreciated.
Dave
That Excel sheet is full of Windows Forms controls. Since those are ActiveX controls I doubt *very* seriously you are going to find any programs on the G Tablet that will allow this file to work correctly. ActiveX, if you aren't familiar with it, is extremely Windows-centric. And at this point, fairly out dated.

Categories

Resources