mieki256's diary



2004/11/28(Æü) [nǯÁ°¤ÎÆüµ­]

#7 [linux] _¥·¥§¥ë¥¹¥¯¥ê¥×¥È ¥ê¥Õ¥¡¥ì¥ó¥¹ & Tips

ls *.ppm ¤Ç hoge01.ppm ¡Á hoge60.ppm ¤¬É½¼¨¤µ¤ì¤ë¤È¤·¤Æ¡£hoge01.pm hoge02.ppm ¡Á hoge60.ppm ¤ÈÎóµó¤·¤¿¤¤¤Î¤À¤±¤É¡£¤É¤¦¤¹¤ê¤ã¤¨¤¨¤Î¤ä¤í¡£

¡ý ¤³¤ó¤Ê´¶¤¸¤«¤·¤é :

#!/bin/sh
for file in $(ls *.ppm)
do
    echo -n "$file "
done
¤â¤Ã¤È¾å¼ê¤¤ÊýË¡¤¬¤¢¤ê¤½¤¦¤Êµ¤¤â¤¹¤ë¤Î¤À¤±¤É¡£¤¦¡¼¤ó¡£

¡ý 2004/12/01Äɵ­¡§echo¤Ç¥µ¥¯¥Ã¤È¤Ç¤­¤ë¤³¤È¤ò¶µ¤¨¤Æ¤â¤é¤Ã¤¿¤Î¤Ç¤¢¤ê¤Þ¤¹ :

echo *.ppm
¤À¤±¤ÇOK¤À¤Ã¤¿¤È¤Ï¡ª ´¶Æ°¡£»ØŦ¤¢¤ê¤¬¤¿¤ä¡Ä (¡­¢¦¡®)

¤³¤Îµ­»ö¤Ø¤Î¥Ä¥Ã¥³¥ß

Re: ¥·¥§¥ë¥¹¥¯¥ê¥×¥È ¥ê¥Õ¥¡¥ì¥ó¥¹ & Tips by tito    2004/12/01 06:34
echo *.ppm ¤Ç¤Ï¤À¤á?
Re: ¥·¥§¥ë¥¹¥¯¥ê¥×¥È ¥ê¥Õ¥¡¥ì¥ó¥¹ & Tips by mieki256    2004/12/01 18:18
> echo *.ppm ¤Ç¤Ï¤À¤á?

­ô(¡±¢¢¡±;)¡ª¡ª

½Ð¤Þ¤·¤¿¡ª ¥Ð¥Ã¥Á¥ê¤Ç¤¹¡ª
¤¦¤ï¡Ä¤³¤ó¤Ê¤Ë´Êñ¤Ë½ÐÍ褿¤Î¤«¡Ä¡£¥¹¥´¥¤¡ª echo¤Ã¤Æ¡¢¥¹¥´¥¤¡ª
thx¤Ç¤¢¤ê¤Þ¤¹¡£´¶¼Õ´¶·ã¤Ç¤¢¤ê¤Þ¤¹¡£
¤½¤¦¤«¡¢¤³¤ó¤Ê¼ê¤¬¤¢¤Ã¤¿¤Î¤«¡£¤Ê¤ë¤Û¤É¡Ä
Re: ¥·¥§¥ë¥¹¥¯¥ê¥×¥È ¥ê¥Õ¥¡¥ì¥ó¥¹ & Tips by tito    2004/12/02 00:00
¤¤¤ä¡¢echo ¤Ï¤¿¤ÀÅϤµ¤ì¤¿Ê¸»úÎó¤ò½Ð¤·¤Æ¤¤¤ë¤À¤±¤Ç * ¤òŸ³«¤·¤Æ¤¤¤ë¤Î¤Ï¥·¥§¥ë¤Ê¤ó¤Ç¤¹¤è¡£
¤¢¤Èfor file in $(ls *.ppm) ¤Ï for file in *.ppm ¤ÎÊý¤¬¤¤¤¤¤Ç¤¹¡£¥¿¥¤¥×¿ô¾¯¤Ê¤¤¤·ls¥³¥Þ¥ó¥É¤òµ¯Æ°¤¹¤ëɬÍפâ¤Ê¤¤¤Î¤Ç¡£
¥·¥§¥ë¤ÎÀâÌÀ¤Ï¤¤¤Þ¥°¥°¥Ã¤¿¤é
http://flex.ee.uec.ac.jp/texi/sh/node5.html#SECTION00032000000000000000
¤¬¤¤¤¤´¶¤¸¡£
Re: ¥·¥§¥ë¥¹¥¯¥ê¥×¥È ¥ê¥Õ¥¡¥ì¥ó¥¹ & Tips by mieki256    2004/12/02 05:57
> * ¤òŸ³«¤·¤Æ¤¤¤ë¤Î¤Ï¥·¥§¥ë

¤Ê¤ë¤Û¤É¡£¤½¤¦¤¤¤¦¤ï¤±¤Ç¤·¤¿¤«¡£ÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤¹¤Ç¤¹¡£¦Õ(..)¥á¥â¥á¥â

> ¥·¥§¥ë¤ÎÀâÌÀ¥Ú¡¼¥¸

¤ª¤ª¡ª ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡ª
¤¿¤·¤«¤Ë¤³¤Î¥Ú¡¼¥¸¡¢È½¤ê¤ä¤¹¤¤¡Ä
¾¤Î¥Ú¡¼¥¸¤âÊÙ¶¯¤Ë¤Ê¤ëÆâÍƤФ«¤ê¤Ç¤¹¤Ê¡£´¶¼Õ¤Ç¤¢¤ê¤Þ¤¹ (¡­¢¦¡®)

°Ê¾å¤Ç¤¹¡£

²áµî¥í¥°É½¼¨

Prev - 2004/11 - Next
Æü ·î ²Ð ¿å ÌÚ ¶â ÅÚ
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

¥«¥Æ¥´¥ê¤Çɽ¼¨

¸¡º÷µ¡Ç½¤Ï Namazu for hns ¤ÇÄ󶡤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡Ê¾ÜºÙ»ØÄê/¥Ø¥ë¥×¡Ë


Ãí°Õ¡§ ¸½ºß»ÈÍѤÎÆüµ­¼«Æ°À¸À®¥·¥¹¥Æ¥à¤Ï Version 2.19.6 ¤Ç¤¹¡£
¸ø³«¤µ¤ì¤Æ¤¤¤ëÆüµ­¼«Æ°À¸À®¥·¥¹¥Æ¥à¤Ï Version 2.19.5 ¤Ç¤¹¡£

Powered by hns-2.19.6, HyperNikkiSystem Project