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 > 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
Write to a CD in SCO zmaster18 SCO 4 04-10-2008 05:04 PM
How to Write RPM kjannu UNIX for Dummies Questions & Answers 1 06-23-2006 09:23 AM
How to write daemon? sg6876 High Level Programming 2 11-18-2005 02:33 AM
How to write this scrip rajeshgngv Shell Programming and Scripting 1 09-19-2005 03:53 AM
tar write err Kevin Pryke UNIX for Dummies Questions & Answers 4 05-17-2002 10:35 AM

 
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 07-13-2007
LAKSHMI NARAYAN LAKSHMI NARAYAN is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 38
how to write

hi
buddies

i want to write a awk script

for the file like this:

Aaj rootha huwa ek dost bahut yaad aaya,
Achha guzra huwa kuch waqt bahut yaad aaya,
Meri aankhon ke har ek ashq pe rone wala,
Aaj jab aankh yeh royi to bahut yaad aaya,
Jo mere dard ko seene mein chhupa leta thaa,
Jo meri aankh mein kajal ki tarah rehta thaa,
Aaj kajal jo lagaya to bahut yaad aaya,
Jo mere dil ke thaa kareeb faqat uss ko hi,
Aaj jab dil ne bulaya to bahut yaad aaya.



so using this file i want to insert a new line , after this line Jo mere dard ko seene mein chhupa leta thaa


the outfile should be like this:
Aaj rootha huwa ek dost bahut yaad aaya,
Achha guzra huwa kuch waqt bahut yaad aaya,
Meri aankhon ke har ek ashq pe rone wala,
Aaj jab aankh yeh royi to bahut yaad aaya,
Jo mere dard ko seene mein chhupa leta thaa,
this is narayana , how r u sos and so
Jo meri aankh mein kajal ki tarah rehta thaa,
Aaj kajal jo lagaya to bahut yaad aaya,
Jo mere dil ke thaa kareeb faqat uss ko hi,
Aaj jab dil ne bulaya to bahut yaad aaya.


regards
narayana
 

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 11:30 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