10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear all,
I have a "SQL request" in a file: that request include different "host variable" and I would like to substitute the different "host variable" by their respective content before executing the request.
For example:
$ echo $SHELL
/bin/bash
$ cat dae2.txt
DELETE FROM ... (11 Replies)
Discussion started by: dae
11 Replies
2. UNIX for Dummies Questions & Answers
hi i just cant figure out how can i do this ls -lt > log.txt using $PWD
what i mean is how can i get the ls command content into a file using $PWD variable? :confused: (4 Replies)
Discussion started by: chinababy
4 Replies
3. Shell Programming and Scripting
I am in the process of developing a perl cgi page.
I had succeeded in developing the page but there are few errors/issues with the page.
description about cgi page:
My CGI page retrieves all the file names from an directory and displays the files in drop down menu for downloading the... (5 Replies)
Discussion started by: scriptscript
5 Replies
4. Shell Programming and Scripting
Hello all,
I do have a variable containing one line like this:
Waiting for job XXXXXX to start
I needed to get the 'XXXXXX' literal, so I did the following:
job_interno=`echo $log_exec | sed 's/.*Waiting for job \(*\).*/\1/' `
#other stuff
Now, my variable is have more... (5 Replies)
Discussion started by: manolain
5 Replies
5. Shell Programming and Scripting
Input
data_10 SSA
data_2 TYUE
data_3 PEOCV
data_6 SSAT
data_21 SSA
data_19 TYUEC
data_14 TYUE
data_15 SSA
data_32 PEOCV
.
.
Desired Output
data_10 SSA
data_2 TYUE
data_3 PEOCV
data_6 SSAT
data_19 TYUEC (9 Replies)
Discussion started by: patrick87
9 Replies
6. Shell Programming and Scripting
I am having one string like
./usr1/Server/temp/app.env ./usr1/Server/temp/upp/app.env ./usr1/Server/ORIG_temp/app.env ./usr1/Server/ORIG_temp/upp/app.env ./usr1/Server/work_temp_40/app.env ./usr1/Server/work_temp_40/upp/app.env ./usr1/fd/app.env ./usr1/PurgeArchive/app.env ./usr1/bm/bin/app.env... (6 Replies)
Discussion started by: dineshmurs
6 Replies
7. Shell Programming and Scripting
I want to address a variable content whose name is/matches the content of a given other variable.
i.e.
set name=´sam´
set ${name}_age=´27´
So, by typing: echo ${name}_age
I correctly obtain: sam_age
By typing: echo $sam_age
or echo ${sam_age}
I correctly obtain: 27
But how can I... (3 Replies)
Discussion started by: sobolev
3 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I have a problem here. I have a file and let we take the content of the file is just '32' (only a numeric value in that file). Now I need to assign this numeric value ( value in that file) to a variable. Is that possible? If so, can you plz advice me on this?
Thanks in... (4 Replies)
Discussion started by: iamgeethuj
4 Replies
9. Shell Programming and Scripting
I have a variable that contains filenames like this:
variable="file_1.extension<blank>file_2.extension<blank>file_3.extension<blank>file_4.extension and so on"
How can I make filenames to be separated by newline: (I tried Sed but it didn't worked well)
file_1.extension
file_2.extension... (6 Replies)
Discussion started by: MartyIX
6 Replies
10. Shell Programming and Scripting
Hi,
variable1="This is a car"
Now I want to replace the content of variable1, "car" to "dog". Is there any simple command I can use.
Thanks.
Joseph (4 Replies)
Discussion started by: josephwong
4 Replies