08-30-2002
Re: shell scripting...
Quote:
Originally posted by bionicfysh
however:
user=toto
ls ~$user
The shell expands stuff like ~toto into a directory name early in its processing of a command line. And it expand $user fairly late.
Try this:
eval "ls ~$user"
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there folks,
I am trying to execute remote sql queries on an Oracle server.
I would like to save the result of the executed sql queries on a text file, and send that text file as an attachment to an email address.
Could anyone give me an idea on how the above could be achieved? Any help... (2 Replies)
Discussion started by: Javed
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I have written 4 sql queries . Now I want to write one SHELL SCRIPTING program for all these queries...
i.e
1.select * from head;
2. select * from detail;
3. delete from head;
4. delete from detail;
Please let me know how to write a shell script...
Thank you (1 Reply)
Discussion started by: user71408
1 Replies
3. Shell Programming and Scripting
Hi guys,
i know how to run a single query using mysql embedded in a shell script as follows:
`mysql -umyuser -pmypass --host myhost database<<SQL
${query};
quit
SQL`
However, how would i be able to run several queries within the same connection?
The reason for this is i am creating... (3 Replies)
Discussion started by: muay_tb
3 Replies
4. Shell Programming and Scripting
Hi,
I have an input file which have many lines,from which i need to extract only the complete sql statements and write this alone to an output file.
please help us in this.
Regards
Meva (7 Replies)
Discussion started by: meva
7 Replies
5. Shell Programming and Scripting
Hi,
Would someone know if I can fire nested sql queries in a shell script? Basically what I am trying to do is as follows:
my_sql=$(sqlplus -s /nolog<<EOF|sed -e "s/Connected. *//g"
connect... (2 Replies)
Discussion started by: shrutihardas
2 Replies
6. Shell Programming and Scripting
Hello,
I am running a post script in autoyast where I am trying to set the broadcast and network address.
I have the ip address and netmask already (reading from a file)..
I saw the post from fpmurphy but it is using ksh which isn't an option in autoyast.
Thanks in advance! (3 Replies)
Discussion started by: bloodclot
3 Replies
7. Shell Programming and Scripting
Hi All,
I tried executing set of queries from shell script but not able to capture the input query in the log file. The code looks something similar to below
sqlplus user/pwd@dbname << EOF > output.log
$(<inputfile.txt)
EOF
The above code is capturing the output of queries into... (9 Replies)
Discussion started by: loggedin.ksh
9 Replies
8. Linux
how to store the count of queries in variables inside a filein shell script
my output :
filename
-------
variable1=result from 1st query
variable2=result from 2nd query
.
.
.
. (3 Replies)
Discussion started by: sanvel
3 Replies
9. Shell Programming and Scripting
How can i run sql queries from UNIX shell script and retrieve data into text docs of UNIX? :confused: (1 Reply)
Discussion started by: 24ajay
1 Replies
10. Shell Programming and Scripting
hi
i am trying to execute db2 queries through shell script. it's working fine but for few queries is not working ( those queries are taking time so the script is not waiting to get the complete the execution of that query )
could you please any one help me on this
is there any wait... (1 Reply)
Discussion started by: bhaskar v
1 Replies
LEARN ABOUT DEBIAN
bamg2geo
bamg2geo(1rheolef) rheolef-6.1 bamg2geo(1rheolef)
NAME
bamg2geo - convert bamg mesh in geo format
SYNOPSIS
bamg2geo options input[.bamg] input[.dmn]
bamg2geo options input[.bamg] -Cl domlabel
bamg2geo options input[.bamg] {-dom domname}*
DESCRIPTION
Convert a bamg `.bamg' into `.geo' one. The output goes to standart output. The `.dmn' file specifies the domain names, since bamg mesh
generator uses numbers as domain labels.
EXAMPLE
bamg -g toto.bamgcad -o toto.bamg
bamg2geo toto.bamg toto.dmn > toto.geo
BAMG CAD FILE
This file describe the boundary of the mesh geometry. A basic example writes (See bamg documentation for more);
MeshVersionFormatted
0
Dimension
2
Vertices
4
0 0 1
1 0 2
1 1 3
0 1 4
Edges
4
1 2 101
2 3 102
3 4 103
4 1 104
hVertices
0.1 0.1 0.1 0.1
DOMAIN NAME FILE
This auxilliary `.dmn' file defines the boundary domain names as used by Rheolef, since bamg uses numeric labels for domains.
EdgeDomainNames
4
bottom
right
top
left
THE DOMAIN NAME FILE CAN ALSO SPECIFY ADDITIONAL VERTICES DOMAIN
EdgeDomainNames
4
bottom
right
top
left
VerticeDomainNames
4
left_bottom
right_bottom
right_top
left_top
Vertice domain names are usefull for some special boundary conditions.
OPTIONS
-upgrade
-noupgrade
Default is to output a version 2 `.geo' file format. See geo(1). With the -noupgrade, a version 1 file format is assumed.
-dom dom1 ... -dom domN
SEE ALSO
geo(1)
rheolef-6.1 rheolef-6.1 bamg2geo(1rheolef)