>>32 GNU sed 限定ね。 _は半角スペースだと思って読んで。 sed s/(\_)+/\_/g で、一個以上の、半角スペースの並びが半角スペース一個に置き換えられる。 全角の場合も同様にできると思うけど、やったことないのでしらん。 もし全角半角のスペースがひと繋がりに混在している場合には、一度全角スペース一個を半角スペース一個に置き換えた後で、パイプして上のやつをやれば良いんじゃない?
Each target may have associated with it a series of shell commands, normally used to create the target. Each of the commands in this script _must_ be preceded by a tab.