[Samba] parsing result of dir problem

Руслан Корнев oganer at gmail.com
Tue Oct 5 06:05:20 MDT 2010


Hi, sorry for bad English.
i have a problem with understanding of format of output of dir command.
There is a problem when a file name or directory contain space in name. For
example

smbclient //netgear/common/ -c "dir" | awk '{print $1}'
...
МЕНЕДЖЕРЫ
backups
АЛТУФЬЕВО-МЕНЕДЖЕРЫ

smbclient //netgear/common/ -c "dir" | awk '{print $2}'
...
D
Connect
D
...


More information about the samba mailing list