Search Results

Search: Posts Made By: alexanderb
1,496
Posted By alexanderb
I apologize for the non satisfactory context. I...
I apologize for the non satisfactory context. I did not solve how to use associative arrays as a lookup table and used an ordinary array instead.

Context, operating system, bash version

More...
1,496
Posted By alexanderb
Thanks, that explains it. Now, I am stuck...
Thanks, that explains it.

Now, I am stuck at filtering with associative arrays but I will make a separate topic if I cannot solve it.


function dirslist () {
declare -A arr
for i in...
1,496
Posted By alexanderb
Iterate over `dirs` in a bash script
I would like to iterate over `dirs`in a script, but the script will never show more than one (current) folder


#! /bin/bash

for i in `dirs`
do
echo ${i}
done
echo ++++++++++++++++++...
Showing results 1 to 3 of 3

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