The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
egrep/grep result of more files tvrman Shell Programming and Scripting 3 08-07-2008 09:29 AM
display the result of wc -l with words before and after the result melanie_pfefer UNIX for Dummies Questions & Answers 3 04-30-2008 08:33 AM
Egrep cheat sheet anywhere? Looking for meaning of egrep -c leelm UNIX for Dummies Questions & Answers 2 01-11-2008 03:37 PM
Outputting formatted Result log file from old 30000 lines result log<help required> vikas.iet Shell Programming and Scripting 5 12-02-2007 10:43 PM
egrep counting every 2 lines of result as 1 Orbix UNIX for Dummies Questions & Answers 1 11-20-2007 08:12 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-17-2008
tvrman tvrman is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 9
how to make menu of result from egrep

hi,
im just starting with scripting , i have de following situation
im doing a search in a data folder with egrep

egrep -i "title.regu." `find . -name "*.dat"`

the result is :

./20080816212245/index.dat:title Regular Expressions
./20080811212216/index.dat:title Reguliere Expressies Tutorial
./20080815173529/index.dat:title Reguliere Expressies handout

Now i want to create a simple menu of the result, so it's possible to choose from
above results.( so for above result, you get a menu of 3 options), then when i choose
1 for example (the first outcoming result), is must go to folder called 20080816212245, (this is de first of the result, then in that folder is file index.html,
(so cd 20080816212245 then nano index.html)

Is there an easy way to do this?.
ps im have no knowledge of sed e.t.. can this be done without?

thank a lot.
 

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0