由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 你们吵着要javascript的: How to delete the last line in the file in node.js?
相关主题
delete files in windows还是awk牛B
feof always return truelinux 能查到 deleted file list 吗
How to write a VB Macro to convert text to hyperlink in Excelnew了指针,delete的时候出错了
急! Python 如何从文件读取数据(整数) ~~在线等问个C++中重复删除指针的问题
Help! Read random number of lines in a input file.[合集] 请教一个c++ 中 delete [] 的问题
问一个小程序python得one question about overloading operator delete
A C++ exception questionWhat is wrong?
ostream& operator << (ostream& s, int cnt) errordelete sheets from Excel workbook in C# (转载)
相关话题的讨论汇总
话题: line话题: delete话题: javascript话题: last话题: file
进入Programming版参与讨论
1 (共1页)
s*****w
发帖数: 1527
1
那,你们吵着要javascript的,
http://www.mitbbs.com/article/Programming/31476255_3.html
看你们怎么解。
If i don't want to use child_process, how to do it please ?
The following is what i really need: delete line 1~4, and last line:
/usr/bin/sed -i '1,4d;$d' myfile
What happens if this is a very large binary file ?
Thanks !
s*****w
发帖数: 1527
2
人呢?
我老现在只能用child process 了。
第一方案
waterfall
{
fs.rename(originalFile, newFile),
find info in the 2nd line of the newFile,
delete last line of the newFile (child_process.exec("sed '$ d' newFile")
...
}
第二方案
child_process.exec("do_all_stuff.py")
大牛们怎么看?
1 (共1页)
进入Programming版参与讨论
相关主题
delete sheets from Excel workbook in C# (转载)Help! Read random number of lines in a input file.
How to call Web Service function from JavaScript on Mac? 问一个小程序python得
求救:javascript程序运行中的一个error messageA C++ exception question
java + javascript open local file?ostream& operator << (ostream& s, int cnt) error
delete files in windows还是awk牛B
feof always return truelinux 能查到 deleted file list 吗
How to write a VB Macro to convert text to hyperlink in Excelnew了指针,delete的时候出错了
急! Python 如何从文件读取数据(整数) ~~在线等问个C++中重复删除指针的问题
相关话题的讨论汇总
话题: line话题: delete话题: javascript话题: last话题: file