Hacking search in-text?

questionsleep

Member
OP
Newcomer
Joined
Apr 23, 2008
Messages
6
Trophies
0
Location
Michigan
XP
124
Country
United States
I desire to search a large text file, on my DS.
For example, I have the text of an encyclopedia, and I look up a specific word and it finds it, just like control F.

Are there any applications which do this?
Any similar options? Perhaps searching a saved website?
 

DanTheManMS

aka Ricochet Otter
Member
Joined
Jun 2, 2007
Messages
4,453
Trophies
1
Age
34
Location
Georgia
XP
752
Country
United States
The only thing I can think of is Vi in DSLinux (press the slash key to enter a word to search for) but you'd almost certainly need slot-2 RAM to open such a large text file without crashing.
 

questionsleep

Member
OP
Newcomer
Joined
Apr 23, 2008
Messages
6
Trophies
0
Location
Michigan
XP
124
Country
United States
DanTheManMS said:
The only thing I can think of is Vi in DSLinux (press the slash key to enter a word to search for) but you'd almost certainly need slot-2 RAM to open such a large text file without crashing.

Would you be able to tell me how to do this, exactly?
I got Linux on my DS, but I have no idea how to do this "Vi" thing.
And, the file I need to look at is only 2.4 MB?
 

DanTheManMS

aka Ricochet Otter
Member
Joined
Jun 2, 2007
Messages
4,453
Trophies
1
Age
34
Location
Georgia
XP
752
Country
United States
But the DS only has 4 MB of RAM, and DSLinux uses up a huge chunk of that so that by the time you're done you've only got a few hundred KB of free RAM for running programs. Try it on a small text file first.

Regardless, once you get inside and are presented with the flashing cursor, type "vi path/to/file.txt". Note that to access the root of your card it's /media/ and spaces must be preceded by a backslash for Linux to handle them properly. Therefore, to access a file in "(root)\Ebooks\Alice In Wonderland.txt" you would type:
Code:
vi /media/Ebooks/Alice\ In\ Wonderland.txt

Tab-completion makes this process much much easier. Start typing the first few letters of the file or folder name and hit Tab to have it automatically complete the name for you. Much faster, and it automatically adds the backslashes for you.

Once you've got it opened, hit the slash key and type the phrase you wish to find and hit Enter. To escape Vi, press Shift+; to create a colon, type q! and hit Enter to force it to close without saving any changes.

Vi is a bit complicated, I'll admit, but the page on the DSLinux wiki for Vi explains it better than I can. Use it if you get stuck.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    Nobody is reading what you post.
  • Psionic Roshambo @ Psionic Roshambo:
    That Dell data breach is worse than people probably realize....
  • Psionic Roshambo @ Psionic Roshambo:
    When I worked for Dell we had access to data about military contracts and addresses for high ranking people.
  • Psionic Roshambo @ Psionic Roshambo:
    I personally handled a call from the second highest person at Raytheon. That call bothered me a lot... The guy was nice and smart what bothered me was the way management basically just blew him off instead of going the extra mile to help him.
  • Psionic Roshambo @ Psionic Roshambo:
    In the end that call ended up costing Dell millions in lost contracts with Raytheon, and really the issue could have been solved for like 450 bucks lol
  • NinStar @ NinStar:
    sometimes I wonder why anyone would ever buy mega man x legacy collection 2
  • NinStar @ NinStar:
    I always thought that capcom shuffled the games in these collection, but apparently they are all in chronological order, which makes legacy collection 2 worthless
  • BakerMan @ BakerMan:
    guys, i want to start singing pirate metal songs and sea shanties if i play sea of thieves
  • The Real Jdbye @ The Real Jdbye:
    find a pirate metal playlist
    +2
  • The Real Jdbye @ The Real Jdbye:
    and sing along
  • BakerMan @ BakerMan:
    nevermind i just learned swearing is against the rules in sea of thieves

    i was about to start singing the song i last put in "what song are you currently listening to" yesterday
  • BakerMan @ BakerMan:
    but yeah ig so
  • The Real Jdbye @ The Real Jdbye:
    swearing not allowed in a pirate game? what has the world come to
  • BakerMan @ BakerMan:
    (here's the song for context)
  • BigOnYa @ BigOnYa:
    Just add -izle to the end of every curse word, you will be fine.
    +2
  • The Real Jdbye @ The Real Jdbye:
    i like alestorm
    +1
  • The Real Jdbye @ The Real Jdbye:
    @BigOnYa too many syllables
    +1
  • BakerMan @ BakerMan:
    same lmao
  • BigOnYa @ BigOnYa:
    hi, welcome to the Temp!
    +1
  • BakerMan @ BakerMan:
    Welcome to the Underground!
    +1
  • BakerMan @ BakerMan:
    the booty boogie from (once again) the donkey kong country cartoon could also be a good song to sing while playing sea of thieves
  • BigOnYa @ BigOnYa:
    Please insert 25 cents for an additional 30 minutes of talk time.
    BigOnYa @ BigOnYa: Please insert 25 cents for an additional 30 minutes of talk time.