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 ...