![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Search for a string and copy the entire line | forumthreads | UNIX for Dummies Questions & Answers | 3 | 06-29-2009 07:29 AM |
| How to search file content | satimis | Linux | 4 | 10-22-2008 12:46 AM |
| shell script to search a string and delete the content | vic_mnnit | Shell Programming and Scripting | 6 | 10-21-2008 09:00 AM |
| Search File content. | elenatec | UNIX for Dummies Questions & Answers | 3 | 09-04-2008 11:53 AM |
| appending string to text file based on search string | malaymaru | Shell Programming and Scripting | 1 | 06-09-2006 08:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How do I search first&second string & copy all content between them to other file?
Hi All,
How do I search first string & second string and copy all content between them from one file to another file? Please help me.. Thanks In Advance. Regards, Pankaj |
|
||||
|
Hi
Hi All,
Thanks for helping me but I am trying to search date. I mean my first string is like [11/10/08 8:43:58:610 EST] and second is [11/10/08 8:44:44:340 EST] and I want data between these tow lines(OR Strings). I have tried your commands for the strings its working fine but please help me in above case. THANKS |
|
||||
|
Have you tried the sed command above? It should be something like:
Code:
sed -n '/[11/10/08 8:43:58:610 EST]/,/[11/10/08 8:44:44:340 EST]/p' file > newfile |
| Sponsored Links | ||
|
|