10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am hoping someone can help me with this issue.
I am extracting a date from a file that is in DD/MM/YYYY format using...
expiry_date=`echo ${line}| awk -F, '{ print $4 }' | tr -d '\r'`
What I need to do is amend the value so instead of getting 30/12/2016 I end up with 12/30/2016. I have... (11 Replies)
Discussion started by: theref
11 Replies
2. Shell Programming and Scripting
Hi Friends,
I have shell script file1.sh which has reference to enviornment file called
Content of filenev.sh
SKIP_FLAG=N
ORACLE_HOME=/u01/oracle/database
My requirement is to change the value of SKIP_FLAG to Y in filenv.sh from file1.sh. Could anyone please help me to do... (2 Replies)
Discussion started by: vfrg
2 Replies
3. Shell Programming and Scripting
I made this HEADMAKER variable to pull the header from the first file in the loop, but then to stop so it doesn't override the file with later loops. However, I CANNOT get it to reassign the value of my variable away from "FIRST". I have also tried it with 1 and 0, and with and without quotes and... (3 Replies)
Discussion started by: crankymonkey
3 Replies
4. Shell Programming and Scripting
Hi to All,
Please find below details.
file_config.config
export file1_status="SUCCESS"
export file2_status="SUCCESS"
file_one.sh
I am calling another two shell script from these script. I need to pass individual two script status (If it's "FAILED") to file_main.sh.
file_main.sh
I... (2 Replies)
Discussion started by: div_Neev
2 Replies
5. Shell Programming and Scripting
Hi guys,
I have a variable where i am storing the filename (with full path).
I just need the value before ".txt". But instead of getting the filename i am getting the contents of the filename.
FileName=/appl/data/Input/US/Test.txt
a=`awk -F"." '{print $1}' ${FileName}`
echo $a... (3 Replies)
Discussion started by: mac4rfree
3 Replies
6. Shell Programming and Scripting
Hi all,
Hope someone can help me out here.
I have this BASH script (see below)
My problem lies with the variable path.
The output of the command find will give me several fields. The 9th field is the path. I want to captured that and the I want to filter this to a specific level.
The... (6 Replies)
Discussion started by: Cowardly
6 Replies
7. Shell Programming and Scripting
I feel like it is just a matter of using the $ operators correctly, but I can't seem to get it...
hostname="network"
ip="192.168.1.1"
netmask=""
variables=( $hostname $ip $netmask )
for var in ${variables}
do
if ; then
$var="--"
fi
done
echo... (7 Replies)
Discussion started by: etranman1
7 Replies
8. Shell Programming and Scripting
if I have a variable named z inside a java file, is there any way to globally
change the name of the variable and all its occurences as a variable?
(but not any other z that is not part of that variable name) (3 Replies)
Discussion started by: lydiaflamp
3 Replies
9. Shell Programming and Scripting
I need to do something like this:for I in var1 var2 var3 ; do
$I = "Something calculated inside the loop"
doneObviously it doesn't work...but is it possible doing that in other ways?
Thanks in advance. (6 Replies)
Discussion started by: canduc17
6 Replies
10. Shell Programming and Scripting
Hi all,
I have problem regarding how to change the quantity in the file.
I will explain you by an example.
I have one file whose name is sample. The content of file are as follows:
sample
-----------------------------------------------------------
1 334 3562 2345
5324 85657 75666 845 ... (0 Replies)
Discussion started by: Aniket
0 Replies