zoukankan      html  css  js  c++  java
  • linux文件名乱码时删除或改名的方式(转载)

    转自:http://www.linuxsa.cn/when-linux-file-name-topsy-turvy-deleted-or-renamed.html

    linux文件名乱码时删除或改名的方式

    当......一堆......文件出现乱码时,你想用脚本把他们改名,结果又发现字符处理工具awk等都对这些玩意没有办法,无比蛋疼啊,怎么办泥,我有办法:
    1.ls -i 查找到这些乱码文件的inode号,比如说2258820
    2.find . -inum 2258820 -exec mv {} newname ; 用find命令对其改名或删除

    [root@node4 ~]# ls -i
    2258820 +?+?
    [root@node4 ~]# find . -inum 2258786 -exec mv {} newname ;

  • 相关阅读:
    C语言第三天,《常量指针和指针常量》
    树莓派系统烧入总结
    c 语言第一天
    7. Vue
    6. Vue
    5. Vue
    4. Vue
    3. Vue
    1. Vue
    2. Vue
  • 原文地址:https://www.cnblogs.com/lance-ehf/p/3772531.html
Copyright © 2011-2022 走看看