02-10-2017
Is this a homework assignment? Homework and coursework questions can only be posted in
the Homework & Coursework forum under
special homework rules.
If you did not post homework, please explain the company you work for and the nature of the problem you are working on. Please, show us what you did try (instead of saying that you "
tried every variation possible". And, since your files are not sorted on their key value fields and you seem to want your output in the same unsorted order, please explain why you are restricting yourself to using
join (which, as you know, requires sorted input files) to perform this task.
If you did post homework in the main forums, please review the
guidelines for posting homework and repost.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have this situation in my script (simplified):
A=C
C=10
I need to get number 10 using just A variable.
I tried with :
echo $`echo $A` - but i get $C string (i need number)
Thanks very much for any help! (1 Reply)
Discussion started by: xfouxs
1 Replies
2. Shell Programming and Scripting
Hi,
I am a new learner of join command. Some result really make me confused.
Please kindly help me.
input:
file1:
LEO oracle engineer 210375
P.Jones Office Runner ID897
L.Clip Personl Chief ID982
S.Round UNIX admin ID6
file2:
Dept2C ID897 6 years
Dept5Z ID982 1 year
Dept3S ID6 2... (1 Reply)
Discussion started by: summer_cherry
1 Replies
3. Shell Programming and Scripting
Hi
I've 2 files:
I'd like to get an output like:
if I do like:
join file1 file2
I get
Where line 30 miss. I'm reading this old post:
https://www.unix.com/unix-dummies-questions-answers/14647-join-command.html.
Where a solutionn with awk is suggested.
I mean is possible get the same... (5 Replies)
Discussion started by: Dedalus
5 Replies
4. Shell Programming and Scripting
input1
a_a a/a 10 100
a1 a_a 20 200
b1 b_b 30 300
input2
a_a a/a xxx yyy
a1 a1 lll ppp
b1 b_b kkk ooo
output
a_a a/a 10 100 xxx yyy (2 Replies)
Discussion started by: ruby_sgp
2 Replies
5. Shell Programming and Scripting
So i'm currently working on a project where I'm attempting to display information of users from the /etc/passwd file and also another information file holding addition information about users.
Problem is I've been trying to join the two files together and have all of the information about each... (2 Replies)
Discussion started by: Nostyx
2 Replies
6. UNIX for Dummies Questions & Answers
file1:
Toronto:12439755:1076359:July 1, 1867:6
Quebec City:7560592:1542056:July 1, 1867:5
Halifax:938134:55284:July 1, 1867:4
Fredericton:751400:72908:July 1, 1867:3
Winnipeg:1170300:647797:July 15, 1870:7
Victoria:4168123:944735:July 20, 1871:10
Charlottetown:137900:5660:July 1, 1873:2... (2 Replies)
Discussion started by: mindfreak
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have 20 tab delimited text files that have a common column (column 1). The files are named GSM1.txt through GSM20.txt. Each file has 3 columns (2 other columns in addition to the first common column).
I want to write a script to join the files by the first common column so that in the... (5 Replies)
Discussion started by: evelibertine
5 Replies
8. Shell Programming and Scripting
Hello !
I want to join 2 files.
They look like this:
KE340296.1 1 0/0:11
KE340296.1 2 0/0:12
KE340296.1 6 0/1:13
KE340297.1 1 0/1:14
KE340297.1 3 0/1:15
KE340297.1 4 0/1:16
and
KE340296.1 1 0/0:21
KE340296.1 2 0/0:22
KE340296.1 3... (4 Replies)
Discussion started by: MumuGB
4 Replies
9. Shell Programming and Scripting
Hello im new here... Im trying to read file and create folders from words in it but i get this for loop error
awk : line 3 : syntax error at or near for
my code is..
#!/bin/bash
begin
for (( i=1;i<=5;i++));
do
awk -v i=$i $0 { print $i }
mkdir $i
done
{print $i}
end {}
i have... (7 Replies)
Discussion started by: boxstep
7 Replies
10. Shell Programming and Scripting
Hi Guys,
I want to combine 2 files and and put together in 1 file . See below desired output. Any help will be much appreciated.
FILE AX 2134 101L 12345.00 22222.00 1 10
X 2134 101L 12345.00 22222.00 11 20
X 2134 101L 12345.00 22222.00 21 30
X 2134 111L 77777.00 ... (3 Replies)
Discussion started by: H.R
3 Replies
LEARN ABOUT DEBIAN
soxtdirectionallighteditor
SoXtDirectionalLightEditor(3IV)() SoXtDirectionalLightEditor(3IV)()
NAME
SoXtDirectionalLightEditor -- component for editing directional lights
INHERITS FROM
SoXtComponent > SoXtDirectionalLightEditor
SYNOPSIS
#include <Inventor/Xt/SoXtDirectionalLightEditor.h>
typedef void SoXtDirectionalLightEditorCB(void *userData, const SoDirectionalLight *light)
Methods from class SoXtDirectionalLightEditor:
SoXtDirectionalLightEditor(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE)
~SoXtDirectionalLightEditor()
void attach(SoPath *pathToLight)
void detach()
SbBool isAttached()
void addLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)
void removeLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)
void setLight(const SoDirectionalLight &newLight)
const SoDirectionalLight & getLight() const
Methods from class SoXtComponent:
virtual void show()
virtual void hide()
SbBool isVisible()
Widget getWidget() const
SbBool isTopLevelShell() const
Widget getShellWidget() const
Widget getParentWidget() const
void setSize(const SbVec2s &size)
SbVec2s getSize()
Display * getDisplay()
void setTitle(const char *newTitle)
const char * getTitle() const
void setIconTitle(const char *newIconTitle)
const char * getIconTitle() const
void setWindowCloseCallback(SoXtComponentCB *func, void *data = NULL)
static SoXtComponent * getComponent(Widget w)
const char * getWidgetName() const
const char * getClassName() const
DESCRIPTION
This class is used to edit an SoDirectionalLight node (color, intensity, and direction are changed). In addition to directly editing direc-
tional light nodes, the editor can also be used with callbacks which will be called whenever the light is changed. The component consists
of a render area and a value slider in the main window, with controls to display a color picker. In the render area there appears a sphere
representing the world, and a directional light manipulator representing the direction of the light. Picking on the manipulator and moving
the mouse provides direct manipulation of the light direction. The color picker is used to edit the color, and the value slider edits the
intensity.
The editor can currently be attached to only one light at a time. Attaching to two different lights will automatically detach the first one
before attaching the second.
METHODS
SoXtDirectionalLightEditor(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE)
~SoXtDirectionalLightEditor()
Constructor and destructor.
void attach(SoPath *pathToLight)
void detach()
Attach/detach the editor to/from a directional light. When attached, changes made in the editor directly affect the attached light.
SbBool isAttached()
Returns TRUE if the editor is attached.
void addLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)
void removeLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)
Additional way of using the directional light editor, by registering a callback and setting the light.
void setLight(const SoDirectionalLight &newLight)
const SoDirectionalLight & getLight() const
Set new light values, and get the current light values.
SEE ALSO
SoXtComponent, SoDirectionalLight
SoXtDirectionalLightEditor(3IV)()