由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - HELP: 怎样用SCRIPT实现如下功能?
相关主题
my script Re: how would you do this?What's the quickest way to change various filenames with same format under unix?
bash script question: read in textRe: What's the quickest way to change various filenames with same form
怎么替换一批文件里的某个字符?what's wrong with gcc?
group permission如何用mail命令发送代附件的信
怎样用mail把某一文本文件发送给一个email地址?How to delete such file?
what is the problem? what can I do?HOw to find files hardlinked to a same inode?
how to contral tar-ed file size?vnc server in Sun Solaris, how to change wm?
HELP.how can i program to insert a line into a file
相关话题的讨论汇总
话题: script话题: 文件话题: foo话题: length话题: 怎样
进入Unix版参与讨论
1 (共1页)
k**e
发帖数: 86
1
一个文件(binary和asc text混合)含有一个特定长度的文件尾, 并且文件尾是以一个特定
的ASCII字符串开头的,请问,怎样用SCRIPT将这个文件尾移到文件首? 谢谢!
t*******a
发帖数: 22
2
tail filename -c LENGTH >> temp
cat temp > foo
head lengthofthefile-LENGTH >> foo
mv foo filename
You should be able to do it with a single command using pipe. Don't wanna
bother doing that for you.
br />

【在 k**e 的大作中提到】
: 一个文件(binary和asc text混合)含有一个特定长度的文件尾, 并且文件尾是以一个特定
: 的ASCII字符串开头的,请问,怎样用SCRIPT将这个文件尾移到文件首? 谢谢!

1 (共1页)
进入Unix版参与讨论
相关主题
how can i program to insert a line into a file怎样用mail把某一文本文件发送给一个email地址?
如何删除一组文件或给一组文件更名?what is the problem? what can I do?
Shell Questionhow to contral tar-ed file size?
how to find a specified file in the unix?HELP.
my script Re: how would you do this?What's the quickest way to change various filenames with same format under unix?
bash script question: read in textRe: What's the quickest way to change various filenames with same form
怎么替换一批文件里的某个字符?what's wrong with gcc?
group permission如何用mail命令发送代附件的信
相关话题的讨论汇总
话题: script话题: 文件话题: foo话题: length话题: 怎样