Skip to main content

Thread: Bash: zipinfo and file names with spaces


here code:

code:
structure_array=(`zipinfo -1 "$file_name"`)
basically outputting directory array. works fine until directory has files names spaces in them.

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

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account