Sponsored Content
Full Discussion: Grep and Sort
Homework and Emergencies Homework & Coursework Questions Grep and Sort Post 302787609 by Jagst3r21 on Saturday 30th of March 2013 12:06:05 AM
Old 03-30-2013
Sir, those are the assignment directions. I will have to email my teacher I guess. The directions are shit.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sort/Grep Question

Hello all, I have a test file that has the format: ..... O 3.694950 -.895050 1.480000 O 5.485050 .895050 1.480000 Ti -4.590000 4.590000 2.960000 Ti -2.295000 ... (5 Replies)
Discussion started by: aarondesk
5 Replies

2. Shell Programming and Scripting

how to grep sort userids

hello folks i have a file that have data like /test/aa/123 /test/aa/xyz /test/bb/xyz /test/bb/123 in above lines i just wants to grep "aa" and "bb". Thanks, Bash (4 Replies)
Discussion started by: learnbash
4 Replies

3. Shell Programming and Scripting

history awk grep sort

can someone help me in the awk part...little confuse on that part. The problem is this: what input each utility gets and what it does with data and what output is provides to the next utility) history | awk '{a++}END{for(i in a){print a " " i}}' | sort -rn | grep '^' Thanks (4 Replies)
Discussion started by: Learnerabc
4 Replies

4. Shell Programming and Scripting

Grep empty space and sort

Hi Expert, Kindly request for your expertise in this matter. I have below output: 12.125.124.173,xx1.common.com 12.125.124.174,xx2.common.com 12.125.124.175,xx3.common.com 12.125.124.176, 12.125.124.177, 12.125.124.178, 12.125.124.179,xx4.common.com 12.125.124.180,xx5.common.com... (8 Replies)
Discussion started by: regmaster
8 Replies

5. Programming

[ask]SQL command act like sort and grep

for example, I have a text file in random content inside, maybe something like this. 234234 54654 123134 467456 24234234 7867867 23424 568567if I run this command cat "filename.txt" | sort -n | grep "^467456$" -A 1 -B 1the result is 234234 467456 568567is it possible to do this command... (2 Replies)
Discussion started by: 14th
2 Replies

6. Shell Programming and Scripting

grep from 3 lines and sort

Pseudo name=hdiskpower54 Symmetrix ID=000190101757 Logical device ID=0601 state=alive; policy=SymmOpt; priority=0; queued-IOs=0 ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW... (7 Replies)
Discussion started by: Daniel Gate
7 Replies

7. Shell Programming and Scripting

How to sort grep result based on timestamp?

Hi, Trying to sort grep result based on timestamp of the filename. I have the following result and want to sort them on timestampgrep -i 'ERROR' *log*2013* s_m_xxx_xxx_xxx_xxx_xxxx.log.20130906092431:TRANSF_1_1_1> DBG_21216 Finished transformations for Source Qualifier . Total errors ... (5 Replies)
Discussion started by: bobbygsk
5 Replies

8. Homework & Coursework Questions

awk questions using sort and grep

1. The problem statement, all variables and given/known data: So i'll probably get told off for this but I have a few problems and rather than clog up the whole forum I'll post them here. Please bare in mind I am a complete novice when it comes to all this and so if you help please treat me like a... (4 Replies)
Discussion started by: jamesb18
4 Replies

9. Homework & Coursework Questions

awk with Grep and Sort

1. The problem statement, all variables and given/known data: Please bare in mind I am a complete novice to this and have very very basic knowledge so please keep any answers as simple as possible and explain in terms I will understand ahha :):) I have a text file of names and test scores... (1 Reply)
Discussion started by: jamesb18
1 Replies

10. Shell Programming and Scripting

Grep -v -f and sort|diff which way is faster

Hi Gurus, I have two big files. I need to compare the different. currently, I am using sort file1 > file1_temp; sort file2 > file2_tmp diff file1_tmp file2_tmp I can use command grep -v -f file1 file2 just wondering which way is fast to compare two big files. Thanks... (4 Replies)
Discussion started by: ken6503
4 Replies
SbLine(3)							       Coin								 SbLine(3)

NAME
SbLine - The SbLine class represents a line in 3D space. SbLine provides a way of specifying a directed line, through a 3D point (origin) and a vector direction in 3D space. SYNOPSIS
#include <Inventor/SbLinear.h> Public Member Functions SbLine (void) SbLine (const SbVec3f &origin, const SbVec3f &point) void setValue (const SbVec3f &origin, const SbVec3f &point) SbBool getClosestPoints (const SbLine &line2, SbVec3f &ptOnThis, SbVec3f &ptOnLine2) const SbVec3f getClosestPoint (const SbVec3f &point) const const SbVec3f & getPosition (void) const const SbVec3f & getDirection (void) const void print (FILE *file) const Detailed Description The SbLine class represents a line in 3D space. SbLine provides a way of specifying a directed line, through a 3D point (origin) and a vector direction in 3D space. It is context dependent whether or not an SbLine is considered as a ray extending from the starting point in only one direction, or as a line intersecting the origin point and extending infinitely from it in both directions. SbLine is used by many other classes in Coin. See also: SbVec3f Constructor &; Destructor Documentation SbLine::SbLine (void) The default constructor does nothing. The line will be uninitialized until the first assignment or setValue() call. SbLine::SbLine (const SbVec3f &origin, const SbVec3f &point) Constructor with origin specifying the line origin point, and point specifying another point on the line that is used to determine the line's direction. point should not be the same as origin, as this will lead to the line having a null vector as the direction vector. This will cause division by zero problems in some of the other methods on this class. Be aware that the direction vector will be normalized and not be the same as point - origin. See also: setValue, getOrigin, getDirection Member Function Documentation void SbLine::setValue (const SbVec3f &origin, const SbVec3f &point) Set new position and direction of the line by specifying line origin and another point on the line that is used to determine the line's direction. point should not be the same as origin, as this will lead to having a null vector as the direction vector. This will cause division by zero problems in some of the other methods on this class. Be aware that the direction vector will be normalized and not be the same as point - origin. See also: setValue, getOrigin, getDirection SbBool SbLine::getClosestPoints (const SbLine &line2, SbVec3f &ptOnThis, SbVec3f &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. Note that both SbLine instances are considered to be infinite in both directions from their definition points, as far as this function is concerned. See also: getClosestPoint(). SbVec3f SbLine::getClosestPoint (const SbVec3f &point) const Returns the point on the line which is closest to point: _ Q D SP x-----x-------> | | | | x P P = argument point _ SP = line starting point, and D = line direction of this line Q = point to find and return from function.fi The vector defined by point and the returned point will be normal to the line. Note that the SbLine instance is considered to be infinite in both directions from its definition point, as far as this function is concerned. See also: getClosestPoints(). const SbVec3f & SbLine::getPosition (void) const Return a vector representing the origin point on the line. See also: setValue const SbVec3f & SbLine::getDirection (void) const Return a vector representing the direction of the line. The direction vector will always be normalized. void SbLine::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 SbLine(3)
All times are GMT -4. The time now is 10:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy