02-21-2011
I can think of adding this command in my Env. Could you anyone point me to right link for this? Will this be a good option?
- John.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
:cool:
I need to execute a shell script to do the following:
cat a file
run two back ground processes using the first two values from the file
wait till those background processes finish
run two more background processes using the next two values from the file
wait till those background... (1 Reply)
Discussion started by: halo98
1 Replies
2. Shell Programming and Scripting
Hi ,
I am FTPing the file. Once the file is FTPied I need to check whether that file currently transferred is of .xls and I need to convert the same to a flat file. What command to use to find the extension of the file?.
Thanks
Mahalakshmi.A (6 Replies)
Discussion started by: mahalakshmi
6 Replies
3. AIX
Dear Chaps,
What will I do if, I am not sure about the length of the file name, but only one thing that I want to remove only the last extension.
e.g. abcdXXXXXX.pqrXXXXX.asc (X is any character)
I want to trim only .asc (or,watever) so that resultant file name would be like... (1 Reply)
Discussion started by: vishal_ranjan
1 Replies
4. UNIX for Dummies Questions & Answers
Hi everyone,
Can we know that which type of file is there without opening a file
thanks in advance....
kunal patil (3 Replies)
Discussion started by: kunalpatil09
3 Replies
5. UNIX for Dummies Questions & Answers
unix program to which a directory name will be passed as
parameter. This directory will contain files with various
extensions. This script will create directories with the names of the
extention of the files and then put the files in the
corresponding folder. All files which do not have any... (2 Replies)
Discussion started by: Deekay.p
2 Replies
6. Shell Programming and Scripting
I have a file
n06-z30-sr65-rgdt0p25-varp0.25-8x6drw-test.cmod
and I want to get the extension.
At the moment I have
set filextension = `echo $f | awk 'BEGIN {FS="."} {print $2}'`
which of course does not work as there is a point in varp0.25 (13 Replies)
Discussion started by: kristinu
13 Replies
7. Shell Programming and Scripting
Hi Friends,
I am using the following command
for i in `ls $PWD`; do cat $i > test && mv test $i; done
But, I want to execute another command and write the output to another file with different extension but same name, like this
I tried using this
for i in `ls $PWD`; do... (2 Replies)
Discussion started by: jacobs.smith
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Discussion started by: girija.g6
2 Replies
9. UNIX for Dummies Questions & Answers
I'm afraid this is a silly question but I can't figure it out.
I have a script like so...
echo "Enter DRDL Signature Version Number"
read DRDL_Number
mv signature_output.csv SERVICE_OBJECTS_S-$DRDL_Number.csv
The resultant filename does not contain the .csv as follows.... (3 Replies)
Discussion started by: Cludgie
3 Replies
10. Shell Programming and Scripting
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies
LEARN ABOUT CENTOS
tkspline
tkspline(n) Tk Spline - An additional smoothing method for canvas items tkspline(n)
__________________________________________________________________________________________________________________________________________________
NAME
spline, - additional smoothing method for canvas items.
SYNOPSIS
package require Tkspline
...
.c create line ... -smooth spline ...
.c create polygon ... -smooth spline ...
_________________________________________________________________
INTRODUCTION
The new option value: -smooth spline provides an additional smoothing method to line and polygon canvas items.
Spline smoothing will revert to the builtin smoothing method unless the number of points is 3n+1, where n is the number of spline segments.
(Normally in polygons this means 3n points because the last point of the spline is understood to be the same as the first in order to close
the polygon).
In line and polygon items, the curves generated with the standard -smooth true option have the following properties:
- the curve is always tangential to a straight line between consecutive points.
- the curve is only guaranteed to intersect the first and last points of lines.
- the curve is not guaranteed to intersect any points of polygons.
With -smooth spline (and the right number of coordinates) the curves generated have the following different properties:
- the curve is guaranteed to intersect the first point, and every third point after that.
- each segment of the curve shares endpoints with the adjacent segments, but is otherwise independent of them.
- the curve is guaranteed to be tangential to a line between n and n+1 at point n, and also to a line between n+2 and n+3 at point n+3.
- the curve is not guaranteed to be smooth at the junctions between segments unless the shared point and the points either side of it are
on a straight line.
These alternative properties are useful to some path planning algorithms.
CREDITS
The underlying Bezier code is in John Ousterhout's original canvas widget, this extension just provides an alternate interface to it. The
hooks into the canvas are provided by Jan Nijtmans in his "dash" patch.
KEYWORDS
spline, line, polygon, bezier, canvas, widget
AUTHOR
John Ellson, ellson@graphviz.org
Tk 8.0 tkspline(n)