Is there an easy way to delete the first so many lines in a log file?
like I have a log file that has 10000 lines, i want to just get rid of the first 9000. (2 Replies)
Hi
I have a file & always I need to remove or delete last 2 lines from that file. So in a file if I have 10 lines then it should return me first 8 lines.
Can someone help me? (4 Replies)
HI
I'm looking to delete lines ending with .tk from below data file
---------
abc.tk
mgm.tk
dtk
mgmstk
------
I have written below code
----
sed '/.tk *$/d' dat_file.txt > temp.txt
----
But its deleting all the lines ending with tk. I need to delete only the lines ending .tk
my... (5 Replies)
We have a server that logs transactions to a file. I want to write a script that will delete the first 50 lines of the file daily without renameing the file or moving the file. (8 Replies)
Good morning!!! Im a newbie with shell programing and i was wondering if there is a way to delete certain new lines from a file, here is an example of my current file:
>seq_0
GTGAGATTGCTAATGAGCTGCTTTTAGGGGGCGTGTTGTGCTTGCTTTCC
AACTTTTCTAGATTGATTCTACGCTGCCTCCAGCAGCCACCCCTCCCATC... (11 Replies)
Hi,
I have a big (2.7 GB) text file. Each lines has '|' saperator to saperate each columns.
I want to delete those lines which has text like '|0|0|0|0|0'
I tried:
sed '/|0|0|0|0|0/d' test.txt
Unfortunately, it scans the file but does nothing.
file content sample:... (4 Replies)
Hello,
I have a file filled with dates, such as:
04-08-2011 message
04-08-2011 message
03-08-2011 message
01-08-2011 message
31-07-2011 message
24-07-2011 message
15-07-2011 message
13-12-2008 message
26-11-2007 message
And I want to delete those lines whose date is older than 10... (5 Replies)
Hi Guys ,
I have two files say a1 and a2 having following contents
a1
dag
wfd
a2
dag
wfd
chire
hcm
I want to delete only the lines in a2 which are in a1 and final output of a2 should be
a2
chire
hcm (6 Replies)
Discussion started by: Pradeep_1990
6 Replies
LEARN ABOUT DEBIAN
plcalc_world
PLCALC_WORLD(3plplot) PLplot API PLCALC_WORLD(3plplot)NAME
plcalc_world - Calculate world coordinates and corresponding window index from relative device coordinates
SYNOPSIS
plcalc_world(rx, ry, wx, wy, window)
DESCRIPTION
Calculate world coordinates, wx and wy, and corresponding window index from relative device coordinates, rx and ry.
Redacted form: General: plcalc_world(rx, ry, wx, wy, window) Perl/PDL: Not available?
This function is used in example 31.
ARGUMENTS
rx (PLFLT, input)
Input relative device coordinate (ranging from 0. to 1.) for the x coordinate.
ry (PLFLT, input)
Input relative device coordinate (ranging from 0. to 1.) for the y coordinate.
wx (PLFLT *, output)
Pointer to the returned world coordinate for x corresponding to the relative device coordinates rx and ry.
wy (PLFLT *, output)
Pointer to the returned world coordinate for y corresponding to the relative device coordinates rx and ry.
window (PLINT *, output)
Pointer to the returned last defined window index that corresponds to the input relative device coordinates (and the returned world
coordinates). To give some background on the window index, for each page the initial window index is set to zero, and each time
plwind(3plplot) is called within the page, world and device coordinates are stored for the window and the window index is incre-
mented. Thus, for a simple page layout with non-overlapping viewports and one window per viewport, window corresponds to the view-
port index (in the order which the viewport/windows were created) of the only viewport/window corresponding to rx and ry. However,
for more complicated layouts with potentially overlapping viewports and possibly more than one window (set of world coordinates) per
viewport, window and the corresponding output world coordinates corresponds to the last window created that fulfils the criterion
that the relative device coordinates are inside it. Finally, in all cases where the input relative device coordinates are not
inside any viewport/window, then window is set to -1.
AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the
PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere.
SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources.
August, 2012 PLCALC_WORLD(3plplot)