Search Results

Search: Posts Made By: mjwoodford
6,683
Posted By mjwoodford
BASH - Reference external variable name dynamically
Hi there,

I have included an external properties file into my BASH script via the 'source' command.

I am attempting to dynamically assign a variable in the BASH script, that references the...
2,883
Posted By mjwoodford
Case insensitive check for directory
Hi,

Im still new to scripting and this forum and could so with a little help
I understand:

if [ -d <dir1>/<dir2> ]; then
good
else
bad
fi

but how do I do the same check but...
1,968
Posted By mjwoodford
Bash: Help with output from a for loop
Hi,

Sorry I'm new to shell scripting..

my loop is as follows:


let i=0
for item in ${APPSARRAY[@]}
do
#..some code to get a unique value called $result
let i=i+1...
2,919
Posted By mjwoodford
Thanks for that, I didn't make it clear,...
Thanks for that,

I didn't make it clear, the value is not fixed and can vary in length, however, 'name3' IS known and fixed
2,919
Posted By mjwoodford
Get value of substring from a file
Hi,

I have a file with a long string, in the format:

name1=value,name2=value2.....namen=valuen

I want to query the file and extract 'value2' ONLY. name2=value2 can exist anywhere within...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 10:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy