The UNIX and Linux Forums  


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



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
retrive value from a file satish@123 Shell Programming and Scripting 7 05-17-2008 09:57 AM
to retrive data that appear only once in a file. anibu Shell Programming and Scripting 1 10-26-2007 11:54 AM
Retrive deleted file's info asmita UNIX for Advanced & Expert Users 4 03-27-2007 02:36 AM
help to retrive data from log file d_swapneel14 Shell Programming and Scripting 5 07-06-2006 05:57 AM
need help appending lines/combining lines within a file... mr_manny Shell Programming and Scripting 2 01-06-2006 06:45 PM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 05-04-2008
swamymns swamymns is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 25
retrive lines from a file using AWK command

Dear friends,
please tell me how to get some required lines from a file and write to another file using AWK command.
i.e.,
if a file contains,

abcdefghigk
12345
lmnopqrstuv

678910
wxyz


please tell me how to get lines(line count is always 2 and it's contineous) mentioned in blue colour from above file and write the same to another file.

thanks in advance,
swamymns
 

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 02:42 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