The UNIX and Linux Forums  

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-31-2006
getdpg getdpg is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 72
Need to split the file

I have a file that has text in the format below

/users/test/krachel/
! Some text
! Some Text
/user/test/limo
! some text
! some text
! Some text
/user/test/krachel
! Some text

How can I seperate the text between a pair of '/users/test/' into seperate files ???

any information would be of great help. Thanks

want to split data like this
File001
/users/test/krachel/
! Some text
! Some Text
File002
/user/test/limo
! some text
! some text
! Some text