Thread: Bash: zipinfo and file names with spaces
here code:
basically outputting directory array. works fine until directory has files names spaces in them.code:structure_array=(`zipinfo -1 "$file_name"`)
i haven't tested it, changing ifs should do:
ifs_old=$ifs
ifs=$'\n'
structure_array=(`zipinfo -1 "$file_name"`)
ifs=$ifs_old
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Bash: zipinfo and file names with spaces
Ubuntu
Comments
Post a Comment