From: Kostarev Alexey <kaf@nevod.ru> To: ALT Linux Community <community@altlinux.ru> Subject: Re: [Comm] remove file in Win Date: Wed, 31 Aug 2005 17:00:02 +0600 Message-ID: <43158DB2.7030905@nevod.ru> (raw) In-Reply-To: <op.swc9zdpohz2pp6@oc.peooc.net> [-- Attachment #1: Type: text/plain, Size: 1944 bytes --] Aleksander N. Gorohovski wrote: > On Wed, 31 Aug 2005 14:11:57 +0400, Kostarev Alexey wrote: > >> Aleksander N. Gorohovski wrote: >> >>> Доброго времени суток сообщество! >>> >>> Подскажите (может кто сталкивался) как удалить файл (директорию) >>> на удаленной Win-системе, имя которого содержит, по всей видимости >>> символы из набора украинского или друго языка (может китайского). >>> Я выполняю следующее в локалке: >>> >>> 1) в Linux системе монтирую удаленный на Win системе C-диск: >>> # smbmount //comp05/C /mnt/disk >>> >>> 2) перехожу >>> # cd /mnt/disk >>> >>> 3) Пытаюсь удалить не нужный объект: >>> # rm ДИН_\:407.doc >>> >>> В ответ получаю: >>> rm: cannot lstat `\344\351\356_:0407.doc' No such file or directory >>> хотя ls говорит о существовании ДИН_\:407.doc >>> >>> Попробовал: >>> # rm -f ДИН_\:407.doc >>> Никакого результата. >>> :-( >> >> >> rm *_/407.doc >> Это если в других директорих нет 407.doc > > > Так, "ДИН_\:" - это не директория, это часть имени файла, который > показывает ls (или mc) и > который добавляется по <Tab> в параметры к rm. > :-) > > \:407 - это цифровое обозначение (кодирование) "не хорошего" символа. > Вообще - странноватое обозначение - код символа (407) восьмиричный - тогда его код более 256 - что быть не может и опять-таки причем здесь двоеточие : - или это UNICODE? OK Действительно не обратил внимание на наклон косых - но сути это не меняет: Варианты rm ДИН_?.doc rm ДИН_*.doc rm *_*.doc Уж последний точно должен пройти. Кстати может продойти (но не гарантирую) rm -f ДИН_\\:407.doc Еще один их вариантов: rm `echo -ne 'ДИН_\:407.doc'` ^^^^^^^^^^^ - то что вставляется по табуляции >> или указаит rm -i */407.doc >> для указания файла для удаления... > > _______________________________________________ > Community mailing list > Community@altlinux.ru > https://lists.altlinux.ru/mailman/listinfo/community > -- С Уважением Костарев А.Ф. [-- Attachment #2: kaf.vcf --] [-- Type: text/x-vcard, Size: 202 bytes --] begin:vcard fn:Alexey Kostarev n:Kostarev;Alexey org:Nevod Ltd. adr:;;;Perm;;;Russia email;internet:kaf@nevod.ru tel;work:(3422) 196-960 url:http://www.nevod.ru/nevod/staff/kaf/ version:2.1 end:vcard
prev parent reply other threads:[~2005-08-31 11:00 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-08-31 8:59 Aleksander N. Gorohovski 2005-08-31 10:11 ` Kostarev Alexey 2005-08-31 9:58 ` Aleksander N. Gorohovski 2005-08-31 11:00 ` Kostarev Alexey [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=43158DB2.7030905@nevod.ru \ --to=kaf@nevod.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git