Search Results

Search: Posts Made By: lynxlee
3,308
Posted By pludi
Ah, yes, missed something on the basename line....
Ah, yes, missed something on the basename line. Fixed in the above post.
3,308
Posted By pludi
Not tested: for dump in *.dump do ...
Not tested:
for dump in *.dump
do
repo=$( basename $dump '.dump' )
echo svnadmin create $repo
( echo "svnadmin load $repo < /opt/vendor/svn/backups/$dump" && echo "$(date) $repo...
2,344
Posted By zaxxon
For bash you can try: $> declare -a ARRAY ...
For bash you can try:

$> declare -a ARRAY
$> ARRAY=( `ls` )

# For single elements:
$> echo ${ARRAY[1]}
# For all elements:
$> echo ${ARRAY }


If it is ok to just have a list instead of...
Showing results 1 to 3 of 3

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