11-09-2011
thanks a ton Vgersh
it finally worked and now i will implement this on complete folder which contain 90+ files ,
there is one more issue i have with my job , lets assume if the change is there in 2 continuous lines then
** my change start point **
line x
** my change end point **
** my change start point ** line x+1
** my change end point **
is it possible to write the tags only once as below output
** my change start point **
line x
line x+1
** my change end point **
i got an alternative as am not expert in awk
1) with the output of the above i will search for the lines below and delete them , this can be alternative if the awk does not permit me
** my change end point **
** my change start point **
vgersh please suggest your opinion
thank you !!
Last edited by rakeshkumar; 11-09-2011 at 01:35 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i need to select a few columns of two txt files and write it to a new file. there is one common field for both of these files.
plz help me in this
thanks in advance (4 Replies)
Discussion started by: kolvi
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a column in 2 different files which i want to compare, and output the results to a different file. The columns are in different positions in those 2 files.
File 1 the column is in position 10-15
File 2 the column is in position 15-20
Please advise
Thanks (1 Reply)
Discussion started by: samit_9999
1 Replies
3. Shell Programming and Scripting
Hello,
I am new to scripting and have been trying to compare two different directories, but with all the same file names in each directory for file changes. I have been doing it in baby steps and have been doing pretty good, but I have hit a few snags. Test 1 and Test 2 work great, but my... (4 Replies)
Discussion started by: dmaday
4 Replies
4. Shell Programming and Scripting
Hi experts,
I'mvery new to shell scripting and learning it now
currently i am having a problem which may look easy to u :)
i have two files
File 1:
Start :Thu Nov 19 10:33:09 2009
ABCDGFSDJ.txt
APDemoNew.ppt
APDemoOutline.doc
ARDemoNew.ppt
ARDemoOutline.doc
File 2:
Start... (10 Replies)
Discussion started by: CelvinSaran
10 Replies
5. HP-UX
Hi there,
I have 2 machines running HP-UX. One off these controllers is able to send mail and the other cannot. I have looked at all the settings that I know and coannot find any differences. Is there a way to audit the 2 machinces by pulling all the settings then compare any differences?
... (2 Replies)
Discussion started by: lodey
2 Replies
6. Shell Programming and Scripting
hi,
I have a file as below:
Name: some_name
Date: some_date
Function Name: <some_function_name(jjjjjjjjj,
fjddddd, gggg, ggg)>
Changes:<Change A
more of change A>
Name: some_name
Date: some_date
Function Name: some_function_nameB(jjjjjjjjj,
fjddddd, gggg, ggg)
Changes:Change B... (15 Replies)
Discussion started by: flamingo_l
15 Replies
7. Shell Programming and Scripting
Hi,
I need to compare the two files and list out difference between the two.
Please assist.
Best regards,
Vishal (2 Replies)
Discussion started by: Vishal_dba
2 Replies
8. Shell Programming and Scripting
Hello everybody
Looking for help in comparing two files in Linux(files are big 800MB each).
Example:-
File1 has below data
$ cat file1
5,6,3
2.1.4
1,1,1
8,9,1
File2 has below data
$ cat file2
5,6,3
8,9,8
1,2,1
2,1,4 (1 Reply)
Discussion started by: shanul karim
1 Replies
9. UNIX for Beginners Questions & Answers
Hello everybody
Looking for help in comparing two files in Linux(files are big 800MB each).
Example:-
File1 has below data
$ cat file1
5,6,3
2.1.4
1,1,1
8,9,1
File2 has below data
$ cat file2
5,6,3
8,9,8
1,2,1
2,1,4 (8 Replies)
Discussion started by: shanul karim
8 Replies
10. Shell Programming and Scripting
This seems pretty simple, but I cant figure it out. I get stumped on the simple things.
I am running two commands
1) take a listing a directory of files, and filter out the doc_name (which is in a series of extracted files), and place it in a file.
ls -l | awk '{print $9}' | grep... (5 Replies)
Discussion started by: jeffs42885
5 Replies
plot(4B) SunOS/BSD Compatibility Package File Formats plot(4B)
NAME
plot - graphics interface
DESCRIPTION
Files of this format are interpreted for various devices by commands described in plot(1B). A graphics file is a stream of plotting
instructions. Each instruction consists of an ASCII letter usually followed by bytes of binary information. The instructions are executed
in order. A point is designated by four bytes representing the x and y values; each value is a signed integer. The last designated point in
an l, m, n, or p instruction becomes the ``current point'' for the next instruction.
m Move: the next four bytes give a new current point.
n Cont: draw a line from the current point to the point given by the next four bytes. See plot(1B).
p Point: plot the point given by the next four bytes.
l Line: draw a line from the point given by the next four bytes to the point given by the following four bytes.
t Label: place the following ASCII string so that its first character falls on the current point. The string is terminated by a NEW-
LINE.
a Arc: the first four bytes give the center, the next four give the starting point, and the last four give the end point of a circu-
lar arc. The least significant coordinate of the end point is used only to determine the quadrant. The arc is drawn counter-
clockwise.
c Circle: the first four bytes give the center of the circle, the next two the radius.
e Erase: start another frame of output.
f Linemod: take the following string, up to a NEWLINE, as the style for drawing further lines. The styles are ``dotted,'' ``solid,''
``longdashed,'' ``shortdashed,'' and ``dotdashed.'' Effective only in plot 4014 and plot ver.
s Space: the next four bytes give the lower left corner of the plotting area; the following four give the upper right corner. The
plot will be magnified or reduced to fit the device as closely as possible.
Space settings that exactly fill the plotting area with unity scaling appear below for devices supported by the filters of
plot(1B). The upper limit is just outside the plotting area.
In every case the plotting area is taken to be square; points outside may be displayable on devices whose face is not square.
4014 space(0, 0, 3120, 3120);
ver space(0, 0, 2048, 2048);
300, 300s space(0, 0, 4096, 4096);
450 space(0, 0, 4096, 4096);
SEE ALSO
graph(1), plot(1B)
SunOS 5.10 18 Feb 2003 plot(4B)