File Manipulation: Scripting Question

后端 未结 4 1292
旧时难觅i
旧时难觅i 2020-12-21 08:48

I have a script which connects to database and gets all records which statisfy the query. These record results are files present on a server, so now I have a text file which

4条回答
  •  别那么骄傲
    2020-12-21 09:23

    You can do it in your shell script itself.

    You have all the files names in your spooled file output.txt, all you have to add at the end of existing script is:

    < output.txt  du -h
    

    It will give size of each file and also a total at the end.

提交回复
热议问题