ããããæ¯åº¦å¿ãããã¨ï¼ sedã§æ¹è¡ã表ç¾ããã«ã¯ãããã¯ã¹ã©ãã·ã¥ã«ç¶ãã¦ãã³ãã«æ¹è¡ãå ¥ããã®ã§ã ï¼èªåã
# ã³ãã³ãæ¹è¡ã«ç½®æãã
s/:/\
/g
ä½åº¦ãs/:/\n/g
ã¨æ¸ãããã¨ãã
ã³ãã³ãã©ã¤ã³ãã使ãã¨ãã¯ãã·ã§ã«ãã"ãã'ãã`ããªã©å¼ç¨ç¬¦ã®éãéããèªèãã¦ããã®ã§ãå¼ç¨ç¬¦å ã§æ¹è¡ãã¦ã第äºããã³ããï¼$PS2ï¼ãåºã¦ãã³ãã³ãã©ã¤ã³å ¥åãç¶ãããã¾ãããã£ã¦ãå¼ç¨ç¬¦å ãªããã³ãã®æ¹è¡ãOKã
$ echo $PATH | sed -e 's/:/\
> /g' | less