Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Windowsç°å¢ã§ä¿åããã·ã§ã«ã¹ã¯ãªãããLinuxç°å¢ã§å®è¡ãã㨠/bin/bash^M: bad interpreter: ãã®ãããªãã¡ã¤ã«ããã£ã¬ã¯ããªã¯ããã¾ãã /bin/bash^M: bad interpreter: No such file or directoryã®ã¨ã©ã¼ã æ¹è¡ã³ã¼ãã\r\nã§ä¿åããã¦ãã¾ã£ããããLinuxã®\nã«ç´ãå¿ è¦ãããã 対å¦æ³ã¯ä»¥ä¸ã sedã³ãã³ãä¸çºã§å¤æã§ãã $ sed -i 's/\r//' <対象ã®ãã¡ã¤ã«> 以ä¸ãæ¤è¨¼ cat -e ã§è¦ãã¨ãæ¹è¡ã³ã¼ãã«\rãå«ã¾ãã¦ãããã¨ãåããã $ cat -e hello.sh #!/bin/bash^M$ echo "hello,world"^M$ãã®ã¾ã¾å®è¡ããã¨ã¨ã©ã¼ $ ./hello.sh -bash: ./hello.sh: /bin/bash^M: bad
Linuxã³ãã³ãã§æ£è¦è¡¨ç¾ãç¨ãã¦ãã¿ã¼ã³ããããããã¡ã¤ã«ãä¸æ¬åé¤ããæ¹æ³ Linuxã³ãã³ãã§æ£è¦è¡¨ç¾ãç¨ãã¦ãã¿ã¼ã³ããããããã¡ã¤ã«ãä¸æ¬åé¤ãããå ´åã以ä¸ã®ããã«ããã¨ä¾¿å©ã ã find æ¤ç´¢å¯¾è±¡ãã£ã¬ã¯ã㪠| grep -E "æ£è¦è¡¨ç¾" | xargs rm -f ãä¾ã以ä¸ã®ãã£ã¬ã¯ããªã»ãã¡ã¤ã«æ§æã«ããã¦ãcatãã£ã¬ã¯ããªãã3é層ä¸ã«ãããã£ã¬ã¯ããªé ä¸ã®ãã¡ã¤ã«ããããã¡ã¤ã«åã«ãindexããå«ããã¡ã¤ã«ãåé¤ãããå ´å ãã£ã¬ã¯ããªã»ãã¡ã¤ã«æ§æä¾ /var/www/cat/kitten/neko/index-main.html /var/www/cat/kitten/neko/index-test.html /var/www/cat/kitten/neko/daisuki/index-test.html /var/www/cat/kitten/kon
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}