![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Grep string but also it will show the next 5 lines | thepurple | Shell Programming and Scripting | 10 | 10-07-2008 08:03 AM |
| Processing a log file based on date/time input and the date/time on the log file | primp | Shell Programming and Scripting | 4 | 03-16-2008 11:23 AM |
| grep time and date | ayhanne | Shell Programming and Scripting | 8 | 01-06-2008 09:12 AM |
| How to replace all string instances found by find+grep | umen | Shell Programming and Scripting | 0 | 12-06-2007 03:52 AM |
| Help needed - Replacing all date & time occurrences in a file with a string using Sed | Hema_M | Shell Programming and Scripting | 4 | 11-17-2005 01:42 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I’ve seen several examples of grep showing the filename the string was found in, but what I really need is grep to show the file details in long format (like ls -l would).
scenario is: grep mobile_number todays_files This will show me the string I’m after & which files they turn up in, but the string could show in several files, so being able to see the time the files were created & in time order would be handy in identifying the order of events rather than having to “ls –l” all the identified files after. Eg broken, still broken, fixed (good) fixed, broken, still broken (bad) I have tried combination of "-exec ls -ltr {} \;" but don’t seem to be getting anywhere. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|