05-18-2007
This script doent print the space it simply print the line without space in starting of the line ..
Please let me know how to print space line with the space in starting of the line
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
What is the command i can use iof i want to display a particular line from a file, i have the line number with me. (5 Replies)
Discussion started by: Rohini Vijay
5 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
Does anyone know how to ammend the .cshrc file in $HOME for your session to display the path as part of the command line? So that I dont need to keep on typing pwd to see where I am?
thanks
Ocelot (3 Replies)
Discussion started by: ocelot
3 Replies
3. Shell Programming and Scripting
I need to display the amount space avalible on a unix server in an html webpage, which will automatically update every hour. I am able to do so using a javascript in a windows based server. How would i go about doing this in a unix server. Any help, suggestions, anything would be great. thanks. (3 Replies)
Discussion started by: davwel
3 Replies
4. Shell Programming and Scripting
I have to compare the number of files of two files on a Shell Script:
I tryied with wc and wiith sed but I can not make an integer...
#!/bin/sh
.
.
n = ls -l | wc -l $file1
`echo "Line: "$n". ">>$LOGFILE`
xx = sed -n '$=' $file2
`echo "Line: "$xx". ">>$LOGFILE`
Aways... (4 Replies)
Discussion started by: fafo77
4 Replies
5. Shell Programming and Scripting
Dear Friends,
I am beginner in Perl and trying to find the problem in a script. Kindly help me to modify the script. My script is not giving the output for the last field and followed text (LA: Language English). Input file & script as follows:
Input file:
Thu Mar 19 2:34:14 EDT 2009
STC... (3 Replies)
Discussion started by: srsahu75
3 Replies
6. Shell Programming and Scripting
I have below file. I want to remove space at begining of every line and then after also remove blank line from file.
I use below code for each operation.
sed -e 's/^*//' < check.txt > check1.txt
sed '/^\s*$/d' < check1.txt > check2.txt
above code not remove all the space... (12 Replies)
Discussion started by: Mohin Jain
12 Replies
7. Shell Programming and Scripting
#!/bin/bash
file1="yxd"
for file in `cat file3.txt`;
do
cat $file1 | awk '{split($1,dp,"."); lend=length(dp); if(lend>2) { dom=dp"."dp; split($2,ipl,","); for(i=1; i<=length(ipl); i++) { if(ipl~/:/) { if(ipl~/:/) i++; rip=ipl; i++; raq=ipl; rtq=0; si=i+4; for(;i<si;i++) rtq+=ipl; rsub="";... (2 Replies)
Discussion started by: veeruasu
2 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
9. Shell Programming and Scripting
Hi all,
I am looking for help with a script for displaying the space available from a df - h command for / (root).
The problem is: If it is below 700 MB I have jobs that are failing... Is there a way I can do a calculation? If it above 700 MB it is good, if it is below 700 MB it will fail.... (5 Replies)
Discussion started by: gartie
5 Replies
10. Shell Programming and Scripting
i have a text file as belows, it includes 2 columns, 1st is the column name, 2nd is the file_name
data_file.txt
column_name file_name
col1 file1
col2 file2
col3 file1
col4 file1
col5 file2
now, i would like to... (4 Replies)
Discussion started by: tester111
4 Replies
LEARN ABOUT DEBIAN
sbdpline
SbDPLine(3) Coin SbDPLine(3)
NAME
SbDPLine -
The SbDPLine class represents a line in 3D space.
SbDPLine is used by many other classes in Coin. It provides a way of specifying a directed line (also known as a ray) through a specified
point (origin) and a direction in 3D space. Note that the line is infinite in both directions from its definition point.
SYNOPSIS
Public Member Functions
SbDPLine (void)
SbDPLine (const SbVec3d &p0, const SbVec3d &p1)
void setValue (const SbVec3d &p0, const SbVec3d &p1)
SbBool getClosestPoints (const SbDPLine &line2, SbVec3d &ptOnThis, SbVec3d &ptOnLine2) const
SbVec3d getClosestPoint (const SbVec3d &point) const
const SbVec3d & getPosition (void) const
const SbVec3d & getDirection (void) const
void print (FILE *file) const
Detailed Description
The SbDPLine class represents a line in 3D space.
SbDPLine is used by many other classes in Coin. It provides a way of specifying a directed line (also known as a ray) through a specified
point (origin) and a direction in 3D space. Note that the line is infinite in both directions from its definition point.
Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
See also:
SbVec3d
Since:
Coin 2.0
Constructor & Destructor Documentation
SbDPLine::SbDPLine (void)
The empty constructor does nothing. The line will be uninitialized until the first assignment or setValue() call.
SbDPLine::SbDPLine (const SbVec3d &p0, const SbVec3d &p1)
Constructor with p0 specifying the line start point and p1 the line end point. p0 should not be the same as p1, as this will lead to having
a null vector as the direction vector, which would cause division by zero problems in some of the other methods on this class.
Member Function Documentation
void SbDPLine::setValue (const SbVec3d &p0, const SbVec3d &p1)
Set new position and direction of the line by specifying line start point and end point. p0 should not be the same as p1, as this will lead
to having a null vector as the direction vector, which would cause division by zero problems in some of the other methods on this class.
SbBool SbDPLine::getClosestPoints (const SbDPLine &line2, SbVec3d &ptOnThis, SbVec3d &ptOnLine2) const
Returns the two closest points on the lines. If the lines are parallel, all points are equally close and we return FALSE. If the lines are
not parallel, the point positions will be stored in ptOnThis and ptOnLine2, and we'll return TRUE.
See also:
getClosestPoint().
SbVec3d SbDPLine::getClosestPoint (const SbVec3d &point) const
Returns the point on the line which is closest to point.
See also:
getClosestPoints().
const SbVec3d & SbDPLine::getPosition (void) const
Return a vector representing a point on the line.
const SbVec3d & SbDPLine::getDirection (void) const
Return a vector representing the direction of the line. The direction vector will always be normalized.
void SbDPLine::print (FILE *fp) const
Dump the state of this object to the file stream. Only works in debug version of library, method does nothing in an optimized compile.
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 SbDPLine(3)