10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a text file (say, declarevars.txt) that contains multiple lines that are essentially meant to be variable declarations:
set arr1 = (var1a var1b var1c)
set arr2 = (var2a var2b var2c)
I want to be able to read this text file within a csh (sorry) script and have that... (2 Replies)
Discussion started by: arjaydj
2. Shell Programming and Scripting
I'm working on a requirement to automate the process of generating report(csv file) using metadata info stored in an Oracle table and E-mail it to respective people.
Meta data table:
1,1,DEV,'select * From... (2 Replies)
Discussion started by: venkat_reddy
how to store the count of queries in variables inside a filein shell script
my output :
variable1=result from 1st query
variable2=result from 2nd query
. (3 Replies)
Discussion started by: sanvel
4. Shell Programming and Scripting
Hi everyone, I am having some problems with my scripts so I hope you could help me.
I am trying to store the result of a division in a variable in tcshell but I have the problem that if:
For example, dividing 2/100 the result is 0.02 but if I store that I have "0".
How can I have 0.02... (8 Replies)
Discussion started by: Bloody
5. Shell Programming and Scripting
i have a text file and want to store it in a appropriate data structure (2-d is preferable) . The contents are as follows.. plzzz suggest an appropriate way to store the contents by using shell scripting (bash shell)
Abc Def Ghi Hjk
Lmn Opq Rst Uvw
.... ..... .... ....
....... (3 Replies)
Discussion started by: cynosure2009
6. Shell Programming and Scripting
I want to store contents of command
dir in array of variables
For eg: dir contents are
command d2 demovi~ file inven java new untitled folder
d1 demovi er1 filename inven~ myfiles ubuntu desktop xmms
I... (3 Replies)
Discussion started by: netresearch
7. UNIX for Dummies Questions & Answers
I know there are caveats about using read in pipelines because read is treated by a subshell. I know this but I can't think of any way to accomplish this regardless, I'm still a rookie.
I hope somebody will be able to interpret what it is that I'm trying to accomplish and correct me.
... (2 Replies)
Discussion started by: ProGrammar
8. Shell Programming and Scripting
I have a cat.dat file, i would like shell to read each 3 lines and set this 3 lines to 3 different variables.
my cat.dat is:
i want shell to make a loop and assign 1st line to student_id, 2nd line to... (4 Replies)
Discussion started by: rosalinda
9. Shell Programming and Scripting
I am a begginer in unix and i want to know how to open a file and read it and separate the numbers & words and storing it in separate files, Using shell scripting.
Please help me out for this.
S.Kamakshi (2 Replies)
Discussion started by: kamakshi s
10. Shell Programming and Scripting
Is anyone able to help with writing a program that will do the following:
1. Read the contents of a file, line by line, and on each line, assign each of the two columns to a shell variable.
2. perform an action on the variables
3. Read the next line.
Here is what I've gotten so far. ... (3 Replies)
Discussion started by: akbar