||
文件夹编号不连续,将编号写到一个文件内:
echo 1023 > number echo 1025 >> number ... cat number 1023 1025 1031 1032 1038 2900 2903 2906 2914 2930 3924 6244 10052 41018
将文件夹内的energy数值读取写到一个文件内:
cat 1023/energy > energy cat 1025/energy >> energy ... cat energy -.91704212E+02 -.95725731E+02 -.94057419E+02 -.94463393E+02 -.96646736E+02 -.94005050E+02 -.95475739E+02 -.95464357E+02 -.93952835E+02 -.96493451E+02 -.94308425E+02 -.95698270E+02 -.95398343E+02 -.20003514E+03
然后将两列合并成到一个文件中:
paste number energy > number_energy cat number_energy 1023 -.91704212E+02 1025 -.95725731E+02 1031 -.94057419E+02 1032 -.94463393E+02 1038 -.96646736E+02 2900 -.94005050E+02 2903 -.95475739E+02 2906 -.95464357E+02 2914 -.93952835E+02 2930 -.96493451E+02 3924 -.94308425E+02 6244 -.95698270E+02 10052 -.95398343E+02 41018 -.20003514E+03
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-22 00:44
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社