07-13-2007
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
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
Could anyone here tell me abt RPM?
How to use this? I want to write it for making a build ?
also tell me how to write installation file?
Thanks,
Kammy (1 Reply)
Discussion started by: kjannu
1 Replies
2. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
3. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
4. Programming
Can anyone tell what happens if each end writes at the same time on the same socket ?
- if one of them issues a read() after write() has completed, will it record into the buffer what the other sent ?
ex.
e1 writes to e2 - - - while - - - e2 writes to e1 (at the same time)
e1 read () - what... (1 Reply)
Discussion started by: gendaox
1 Replies
5. Shell Programming and Scripting
Hi All,
I have written the follwing script to take the backup of the file every day
along with the date.
DATE=`date +%Y%m%d`
export DATE
cp var/hr/hr333m.txt cp var/hr/payments/hr333m_$DATE.txt
The file name as follows after taking the backup.
hr333m_20110630.txt
Could you... (3 Replies)
Discussion started by: ajaykumarkona
3 Replies
6. Shell Programming and Scripting
Hi Team,
I am trying for below requiremebt but not getting how to go.
When i give below command
amqrfdm -m SUN
it gives the output as below
amqrfdm for v7.0
Date(2013-08-12 )Time(14.06.42)
Version(7.0.1.3)(p701-103-100813)
Product(WebSphere MQ for Solaris (SPARC platform))
#)... (12 Replies)
Discussion started by: darling
12 Replies
7. Shell Programming and Scripting
hello
i'm using SOX to generate a spectrogram from a wave file with the command :
#sox file.wav -n spectrogram
is there a way to create a spectrogram using the same command but reading file timestamps instead of the namefile.wav , since name is changing every 4 hours? (it's saved with... (2 Replies)
Discussion started by: Board27
2 Replies
8. Shell Programming and Scripting
Hi All,
I need the answer of below question?
1) How to write multiple cronjobs in shellscript? Is there any way or we cant write in shellscript...
Regards,
Priyanka (2 Replies)
Discussion started by: pspriyanka
2 Replies
9. Programming
(Apologies for any typos.)
OSX 10.12.3 AND Windows 10.
This is for the serious Python experts on at least 3.5.x and above...
In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly.
Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT PLAN9
incatalog
INCATALOG(3) MBK UTILITY FUNCTIONS INCATALOG(3)
NAME
incatalog - test if cell belongs to the catalog file
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
#include "mut.h"
int incatalog(figname)
char *figname;
PARAMETER
figname Name of the cell to be checked
DESCRIPTION
incatalog checks a cell represented by its figname beeing present in the catalog file with the 'C' attribut.
This means that when flattening, the hierachy destruction stops when encountering a cell belonging to the catalog. This is meant for both
logical and physical views, of course.
The catalog is the sum of all the catalogs of the cells libraries specified in the MBK_CATA_LIB(1) and MBK_WORK_LIB(1). The catalogs of
the MBK_CATA_LIB(1) are the files called CATAL, and the MBK_WORK_LIB(1) is by default CATAL but can be changed to MBK_CATAL_NAME(1).
RETURN VALUE
incatalog returns 0 if the cell does not belong to the catalog with the 'C' attribut, a value different from 0 if it does.
EXAMPLE
#include "mut.h"
char *tell_if_incatalog(name)
char *name;
{
return incatalog(name) ? "Jawohl, mein Herr" : "Nein, danke";
}
SEE ALSO
mbk(1), incatalogfeed(3), incatalogdelete(3), incataloggds(3), MBK_CATAL_NAME(1), MBK_CATA_LIB(1), MBK_WORK_LIB(1).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM
/LIP6 October 1, 1997 INCATALOG(3)