The UNIX and Linux Forums  


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 copy Content of a file to another file on a specific column tuxus Shell Programming and Scripting 8 08-14-2009 10:18 AM
Need help with awk - how to read a content of a file from every file from file list tanit Shell Programming and Scripting 7 03-10-2009 05:19 AM
How do I search first&second string & copy all content between them to other file? pankajp Shell Programming and Scripting 12 01-07-2009 09:33 PM
Reading a file and sending mail based on content of the file nimu1979 UNIX for Advanced & Expert Users 6 01-07-2009 04:23 AM
find for specific content in file in the directory and list only file names madhu_Jagarapu AIX 2 12-23-2008 02:13 AM

Reply
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
  #1 (permalink)  
Old 4 Weeks Ago
kaushik02018 kaushik02018 is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 27
Smile copy content of file to other file

Hi ,
i Have 11 Gb file which contain 70 database but I want only one database
now i want content of file copy to other file
as

from starting from word of file1
create database xyz
to end word
create database xyz1

this copies to other file2

By this I cant get required database file
  #2 (permalink)  
Old 4 Weeks Ago
rdcwayx rdcwayx is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 276

Code:
sed -n '/create database xyz/,/create database xyz1/p' file1 > file2


Last edited by rdcwayx; 4 Weeks Ago at 08:29 PM..
  #3 (permalink)  
Old 4 Weeks Ago
kaushik02018 kaushik02018 is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 27
Smile

Quote:
Originally Posted by rdcwayx View Post
Code:
sed -n '/create database xyz/,/create database xyz1/p' file1 > file2
Thanks it works for me
Reply

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 06:20 PM.


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