0

Update some columns content in some csv files with a batch.

eg: 1.csv 2.csv 3.csv 4.csv.....

All the columns name are the same in all the csv file.

Suppposed those csv files have columns test1 test2 test3 test4 test5...... . the test1 have contents like this:

0
0
0
0 
..

now, i want to change them to 99, namely:

99
99
99
99
..

Is there a tool or using php to update the content in all the csv files synchronously and update the content with a batch. thank you

4

2 に答える 2

0

fgetcsv()fputcsv()、およびstr_getcsv()を見てください

于 2012-05-05T10:29:34.560 に答える
0

Windowsには、それをバッチで自動的に行うようなツールはありません。ただし、スプレッドシートアプリケーション内でそのようなファイルをすべて開いて、すばやく変更することはできます。

ファイルの数が多すぎる場合は、選択したスクリプト言語(PHP)を選択して、データとその変更を処理するファイル処理ルーチンを作成できます。PHPマニュアルは、使用できる複数の関数への道を示しています。NADHも同様です。

これがあなたの質問に答えることを願っています。

于 2012-05-05T11:15:45.827 に答える