sed 好工具

当你的实验产生了很多相同样式的数据文件时,如果有 1000 个这样的文件,我们不太可能针对每一个文件单独进行操作。如果某数据文件 (.csv) 的开头几行是这样的,需要进行删除操作。 # This is for XYZ experiment # column 1: time ; column 2: displacement ; … # unit: # s; m; …. 0,0.1 0.1,0.2 …. 在 linux 中,很容易进行这样的操作。如:对第 1~4 行的数据进行删除,在 Terminal 中进入到该文件夹,然后运行: find . -iname Continue reading sed 好工具

Install CentOS 6.3, dual-boot with Windows 7 64bit

Featured

In November, 2012, my ASUS Z99 laptop didn’t work. After 1.5 month, I got a new laptop, ASUS N56VZ, with balance between budget and performance while considering my requirements: run OpenFOAM, Salome, Deal.II and others. N56VZ runs on Windows 7. Continue reading Install CentOS 6.3, dual-boot with Windows 7 64bit

Connect ADSL Automatically and Email You Network Information

It’s time to enjoy winter holidays. However, teachers will be working for another two weeks. I’d like to use the computers in the lab when I am at home. I need to create an automatic job to do this work. Continue reading Connect ADSL Automatically and Email You Network Information

Some Issues on OpenFOAM

When wmake some applications of OpenFOAM, there is a problem: …… /usr/bin/ld: skipping incompatible /home/abc/OpenFOAM/OpenFOAM-1.3 /lib/linuxGcc4DPOpt/libfiniteVolume.so when searching for -lfiniteVolume /usr/bin/ld: cannot find -lfiniteVolume collect2: ld returned 1 exit status make: *** [/home/abc/OpenFOAM/OpenFOAM-1.3 /applications/bin/linuxGcc4DPOpt/icoFoam] Error 1 I find the solution Continue reading Some Issues on OpenFOAM