10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all, I am trying to create a script to read my Windows UUIDs and create mounts in fstab. I know there are different and maybe even better ways to mount Windows partitions at boot time, but I always manually create them in fstab successfully. I do a clean install of Ubuntu often and would like to... (2 Replies)
Discussion started by: Ian Pride
2 Replies
2. Shell Programming and Scripting
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Discussion started by: vivek d r
2 Replies
3. UNIX for Dummies Questions & Answers
Hello,
How can i display the below ... say
echo "Start \n Analyse \n ~/temp/input.txt \nStop"
Now my output should look like below
Start
Analyse
This is from input file
Stop
I tried echo "Start \n Analyse \n $var \nStop where $var = "~/temp/input.txt".. It did not work out..... (3 Replies)
Discussion started by: sathyaonnuix
3 Replies
4. Shell Programming and Scripting
Simple enough problem I think, I just can't seem to get it right.
The below doesn't work as intended, it's just a function defined in a much larger script:
CheckValues() {
for field in \
Group_ID \
Group_Title \
Rule_ID \
Rule_Severity \
... (2 Replies)
Discussion started by: Vryali
2 Replies
5. Shell Programming and Scripting
#!/bin/bash
varA="AAA1"
varB="BBB2"
varC="CCC3"
for proccx in $varA $varB $varC
do
echo "the current name is ????? , the value is $proccx"
echo " "
done
#end of script
I want the output to look something like this:
the current name is varA, the value is AAA1
the current name is... (5 Replies)
Discussion started by: ajp7701
5 Replies
6. Shell Programming and Scripting
Hello All,
I've written a script to collect all audit logs files; now i want to see only the files from it which contains certain x tablenames. I've stored all the tablenames in a log file and using it through variable in a script (ex:below)
$ more tablenames.log (this is just a samle... (2 Replies)
Discussion started by: suri.tyson
2 Replies
7. Shell Programming and Scripting
hello,
i have a listing (let say ABC) consists of the below:
:
public database link
public synonym
role
rollback segment
:
when i run the below for loop,
for i in `more ABC`
do
echo "$i"
done
it gives me,
:
public
database (4 Replies)
Discussion started by: newbie168
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a variable v_iteration which can equal any 3 digit number eg 001 or 926
I would like to dynamically make a new variable name up using this 3 digit number
eg
v_another_variable_001=fred
v_another_variable_926=joe
The following are examples of what I have tried
... (2 Replies)
Discussion started by: Bab00shka
2 Replies
9. Shell Programming and Scripting
I am modifying an existing script and it has the following line:
export SomeEnvVar=`echo ${SomeLocalVar}`
Why wouldn't it just read:
export SomeEnvVar=${SomeLocalVar}
Is there some reason to use echo instead of a direct assignment? :confused: (2 Replies)
Discussion started by: shellburger
2 Replies
10. Shell Programming and Scripting
Hi
I have several variables called
var1, var2, var3, var4 and so on.
I would like to examine the contents of the variables using a loop
and a variable called num which equals a figure
eg
num=3
I wanted to do something like
echo $var$num
to display the contents of var3 (4 Replies)
Discussion started by: Bab00shka
4 Replies