タグ付けされた質問 「pipelining」

1
unixのパイプで上書きする方法
だから私はパイプを使って上書きしようとしています: //reads contents of file| turns lowercase to uppercase | changes $ to # | // then attempts to overwrite original file with new version cat cutTester.txt|tr '[a-z]' '[A-Z]'|tr '$' '#' >cutTester.txt しかし、これを実行すると、ファイルが消去されます。これはファイルの内容です $first$second$third$fourth $fifth$sixth$seventh$eighth $ninth$tenth$eleventh$twelveth $thirteenth$fourthteenth$fifthteenth$sixthteenth $seventeenth$eightteenth$nineteenth$twenty $twenty-one$twenty-two$twenty-three$twenty-four
1 unix  cat  pipelining 

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.