The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to get number of pages in a PDF file prvnrk Shell Programming and Scripting 8 04-21-2009 04:14 PM
c program to extract text between two delimiters from some text file kukretiabhi13 High Level Programming 7 12-03-2008 06:29 PM
Split a file with no pattern -- Split, Csplit, Awk madhunk UNIX for Dummies Questions & Answers 10 12-17-2007 12:57 PM
efficiently split a 2GB text file into two ihot Shell Programming and Scripting 2 10-15-2007 05:25 PM
grep multiple text files in folder into 1 text file? coppertone UNIX for Dummies Questions & Answers 7 08-23-2002 02:50 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-31-2001
ranri ranri is offline
Registered User
  
 

Join Date: May 2001
Posts: 2
Angry Split text file by pages

Hello!

Firts of all, I'm sorry for my English.

My problem:

I have text file with few Form Feed symbols (FF, ASCII code =12) inside (for example - some report, consists of some pages for
printing).

I want to split this text by pages - each page (until FF symbol)
in single file.

I suppose to use UNIX command <csplit>. Am I right?

But I don't know, how can I pass control symbol string as parameter to this command :-(

Help, please!


  #2 (permalink)  
Old 05-31-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Usually the form feed is denoted in unix with "^L". In this case you could do something like:

csplit input_file '/^L/' '{*}'


You can produce the ^L character by typing Ctrl-v Ctrl-L on your keyboard.
  #3 (permalink)  
Old 06-01-2001
ranri ranri is offline
Registered User
  
 

Join Date: May 2001
Posts: 2
Thumbs up THANK YOU VERY MACH !!!

Thanks!

It works!

My mistake was that I tried to use construction '\f' as
parameter (It seems to me, that I don't understand correctly the meaning of such metasymbols - Is that true?)

You advice was very important for me, THANKS!

I will be happy to help You in Your problems, if You have them
My specialisation - Oreacle & SQL.

Best wishes to You!
Sponsored Links
Closed Thread

Bookmarks

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 04:52 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