hi
i dont know how to go abt this? as i m new to unix.
i have file say as xct. in file there are so many commands.
. now here i m accepting new cron settings from user.
but these new settings will be applicable for particular command.
like my file is as
* * * * * read a <... (0 Replies)
Hello and thank you in advance for any assistance.
Working with SCO 5.0.5 our SCSI tape device is no longer working.
Before we replace the unit I want to verify it's not related to a change
someone may have made via mkdev tape.
For years the boot message would list the tape device as this:... (1 Reply)
Hello, i'm new with the scripting on unix and i need such script or maby something to that way:
I need to change the the first word in every new line to a given word. Using just /bin/sh ( not using sed, awk, perl and ect).
I would be very grateful. (9 Replies)
Hi,
I'm struggling to write a script to do the following,
-will go through each line in the file
-in a specific character positions, changes
the value to a new value
-These character positions are fixed througout the file
-----------------------
e.g.: file1.sh will have the following 3... (4 Replies)
hej
i have a simple question:
is it possible to change rows and lines in a simple textfile with awk or something else?
I have:
1 2 3 4 5 6
9 8 7 6 5 4
an I will have:
19
28
37
46
55
64 (1 Reply)
Hello,
I want to change a line at file whit a script
i want to change line 150 for example, write hello and remove text of this line
EXAMPLE
LINE 150: my mother
change to:
LiNE 150: HELLO (4 Replies)
I did help some at another forum to change one line to multiple lines.
var1="abc001: text goes here yyy003: text goes here uuuu004: text goes here"
Running this awk, gives correct result, but its not very nice. Any idea on how to simplify it?
awk '{for (i=1;i<=NF;i++) printf $i~":"?"\n"$i" ":$i"... (7 Replies)
Hi All,
I have a file with 20 columns, and the data itself has "\n" new line in it. So we have changed the row delimiter to ^E.
Now i am unable to use head, wc -l etc... Please let me know how to change the line separator temporarily to run these unix commands.
Thanks. (1 Reply)
Hello all,
what I would like to have sounds quite simple...
I have a file where the records have a line ending like (CR, LF, CR/LF, LFLF, ...) - so I do not know.
In result I would like to have a file with UNIX line endings -> LF
Maybe I can do it with a sed - but I do not... (8 Replies)
Discussion started by: API
8 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)