1
ksh93はとても高速ですか?
そのため、一般的に、私はsedテキスト処理、特に大きなファイルを探す傾向があり、通常はシェル自体でそのようなことを行うのを避けます。 しかし、それは変わるかもしれないと思います。私はあちこち見ていてman ksh、これに気づきました: <#pattern Seeks forward to the beginning of the next line containing pattern. <##pattern The same as <# except that the por‐ tion of the file that is skipped is copied to standard output. 実世界の有用性に懐疑的だったので、試してみることにしました。やった: seq -s'foo bar ' 1000000 >file ...次のような100万行のデータの場合: 1foo bar ... 999999foo bar 1000000 …