Sponsored Content
Top Forums Shell Programming and Scripting find options don't work in script Post 302115966 by Perderabo on Monday 30th of April 2007 10:31:08 AM
Old 04-30-2007
When you typed the command interactively you did not have single quotes inside double quotes.
Code:
$ echo 'hello'   'world'
hello world
$ echo "  'hello'   'world'  "
  'hello'   'world'
$

 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

How come sigs don't work?

They appear to be turned on, I entered mine in. The check boxes are all checked. And yet, no sigs? (4 Replies)
Discussion started by: l008com
4 Replies

2. UNIX for Advanced & Expert Users

variables don't work for inline "su" script

My first post here... I cannot get variables to work when using inline KSH commands on a "su" command. I have a KSH script, below, that produces my problem: #!/usr/bin/ksh su <user_id> <<-END export FLD1=`echo $PWD` pwd echo $FLD1 echo TEST echo $PWD END The script will prompt me... (3 Replies)
Discussion started by: joekreif
3 Replies

3. Shell Programming and Scripting

Script to move files based on Pattern don't work

Hi people, i need you help on this if you can. I have a script that does the move command when it searches for a that doesn't match the pattern. This Pattern is on a list. When it run's and doesn´t found no files but it haves 2 more folders it moves the folders too. Ex:... (1 Reply)
Discussion started by: osramos
1 Replies

4. Programming

why daytime don't work?

Following code is detecting solaris daytime,when I run it,I can't get any result,code is follows: #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define BUFFSIZE 150 int main(){ ... (2 Replies)
Discussion started by: konvalo
2 Replies

5. Programming

why printf don't work?

I use Solaris 10, I use following code: #include <signal.h> int main(void){ printf("----------testing-----------"); if(signal(SIGUSR1,sig_usr)==SIG_ERR) err_sys("can't catch SIGUSR1"); for(;;) pause(); sig_user(int signo){ ..... } when I run above code,it print nothing... (3 Replies)
Discussion started by: konvalo
3 Replies

6. HP-UX

awk don't work in hp-ux 11.11

Hello all! I have problem in hp-ux 11.11 in awk I want to grep sar -d 2 1 only 3 column, but have error in awk in hp-ux 11.11 Example: #echo 123 234 | awk '{print $2}' 123 234 The situattions in commands bdf | awk {print $5}' some... In hp-ux 11.31 - OK! How resolve problem (15 Replies)
Discussion started by: ostapv
15 Replies

7. Solaris

I don`t understand how It work (about startup script)?

Hi all. The startup script in /usr/local/bin. After user login the script run an application. Iwould in the same way run the another application. How to make It similar? Where I must to look? Regards. (3 Replies)
Discussion started by: wolfgang
3 Replies

8. Solaris

Open Terminal Don't work

Hi, I installed solaris 10 x86 on my local system. it was working fine. today when i started the system, it started up without any problem. when i tried to open the terminal it didn't open any terminal. Plz help me (0 Replies)
Discussion started by: malikshahid85
0 Replies

9. UNIX for Dummies Questions & Answers

HELP Script don't work selecting lowest value!!!

Hy again guys, Last week i resolve a question here but now i need your help again :rolleyes: I have about 3000 files that i need to choose based on the lowest value, so i make temp files like this: The files can have lines from 1-10 but only 2 columns, the point is to grep the name os the... (2 Replies)
Discussion started by: MetaBolic0
2 Replies

10. Shell Programming and Scripting

Equivalence classes don't work

Hello: I can't get equivalence classes to work in globs or when passing them to tr. If I understood correctly, matches e, é, è, ê, etc. But when using them with utilities like tr they don't work. Here's an example found in the POSIX standard: I decided to create the aforementioned files in... (9 Replies)
Discussion started by: Cacializ
9 Replies
BlenderImport(3pm)					User Contributed Perl Documentation					BlenderImport(3pm)

NAME
XRacer::BlenderImport - Import files exported by xracer-blenderexport.py SYNOPSIS
use XRacer::BlenderImport; $world = parse XRacer::BlenderImport [ $filename ]; $index = $world->add_vertex ($vertex); $verticesref = $world->get_vertices; %layerinfo = $world->get_layer_info; @objects = $world->get_meshes_in_layer ($layer); DESCRIPTION
The "XRacer::BlenderImport" module contains functions for importing special XRacer-specific Blender files into Perl scripts. These Blender files have been previously exported by the "xracer-blenderexport.py" Python script for Blender. The "XRacer::BlenderImport" module parses the "blender.export" file, cleans it up (removing multiple vertices, for example) and presents an internal world representation. The world is divided into layers (corresponding to the layers in the original Blender image), and in each of these layers is a set of meshes. FUNDAMENTAL TYPES Vertices are stored in a global list, so that common vertices are only stored once. A vertex structure looks like this: $vertex = { coords => [ $x, $y, $z, 0 ], texcoords => [ $u, $v ], normal => [ $nx, $ny, $nz, 0 ], colour => [ $r, $g, $b, $a ] }; The fields are (in order): the coordinates of the vertex, the texture coordinates, the normal vector at this point and the colour of the vertex. Faces are stored simply as a list of vertex indices (relative to the global list of vertices). A face looks like this: $face = { vertices => [ $index0, $index1, $index2, ... ] } Faces have at least three vertices, and maybe more. A mesh is a list of faces and additional information, such as the name of the mesh (object). A mesh structure looks like this: $mesh = { name => $name, layer => $layer, faces => @faces, material => [ $red, $green, $blue ], has_colours => $has_colours, has_texcoords => $has_texcoords, has_material => $has_material }; The fields are: the name of the mesh (or object), the layer on which the object exists, the list of faces, the material and then three flags which are passed to us from Blender: did the user supply vertex colours? did the user supply texture coordinates? and did the user supply a material? CLASS METHODS
$world = parse XRacer::BlenderImport [ $filename ]; Parse the import file $filename (or "blender.export" if no filename is given) and generate a world representation. If the file could not be parsed, then this function will print an error message and return "undef". OBJECT METHODS
$index = $world->add_vertex ($vertex) This function adds a single vertex to the world object (vertices are stored in a large shared list so that common vertices are folded into one). It returns the vertex index of the new vertex. If another vertex with the same position, texture coordinates, normal and colour existed, then this function would return the index of the other vertex, rather than creating a fresh vertex object. $verticesref = $world->get_vertices This returns a reference to the global list of vertices. You must not update or change this list. Use the "add_vertex" method instead. %layerinfo = $world->get_layer_info This method returns a hash. The keys of the hash are layers which contain at least one object. The values of the hash are the number of objects in that layer. For example, if the world contained 3 objects on layer 1, 1 object on layer 2 and 4 objects on layer 5, then the hash returned would be equivalent to: %layerinfo = ( 1 => 3, 2 => 1, 5 => 4 ); @objects = $world->get_meshes_in_layer ($layer) Get a list of the objects (i.e. meshes) found in layer $layer. See the DESCRIPTION section above for a description of the mesh structure. AUTHOR
Richard W.M. Jones, <rich@annexia.org> COPYRIGHT
XRacer is copyright (C) 1999-2000 Richard W.M. Jones (rich@annexia.org) and other contributors listed in the AUTHORS file. SEE ALSO
perl(1), xracer(6). perl v5.14.2 2000-01-30 BlenderImport(3pm)
All times are GMT -4. The time now is 11:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy