Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このようなCSVファイル(100列)があります
10,20,30,40,50,...,1000 20,30,40,50,60,...,1010 . . .
そして、すべての値を10で割って、次のようにします。
1,2,3,4,5,...,100 2,3,4,5,6,...,101 . . .
AWKでこれを行うにはどうすればよいですか?どうもありがとうございます!
次のawkコマンドを使用します。
awk 'BEGIN {FS=OFS=","} {for (i=1; i<=NF; i++) $i/=10;}1' infile