由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 怎么替换一批文件里的某个字符?
相关主题
my script Re: how would you do this?how to contral tar-ed file size?
问一个sed问题HELP.
如何用16进制查找替换文件中的字符?What's the quickest way to change various filenames with same format under unix?
HELP: 怎样用SCRIPT实现如下功能?Re: What's the quickest way to change various filenames with same form
bash script question: read in textwhat'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?
相关话题的讨论汇总
话题: 文件话题: wildcards话题: 字符
进入Unix版参与讨论
1 (共1页)
g******a
发帖数: 730
1
我有一堆html文件
想把其中的@替换成at
怎么写个script来做阿?
多谢!
w**n
发帖数: 88
2
#!/bin/sh
for x
do
sed -e "s/@/ at /g" $x > tmp.$x
done
=================
use filename and/or wildcards as command line arguments

【在 g******a 的大作中提到】
: 我有一堆html文件
: 想把其中的@替换成at
: 怎么写个script来做阿?
: 多谢!

1 (共1页)
进入Unix版参与讨论
相关主题
HOw to find files hardlinked to a same inode?bash script question: read in text
vnc server in Sun Solaris, how to change wm?group permission
how can i program to insert a line into a file怎样用mail把某一文本文件发送给一个email地址?
如何删除一组文件或给一组文件更名?what is the problem? what can I do?
my script Re: how would you do this?how to contral tar-ed file size?
问一个sed问题HELP.
如何用16进制查找替换文件中的字符?What's the quickest way to change various filenames with same format under unix?
HELP: 怎样用SCRIPT实现如下功能?Re: What's the quickest way to change various filenames with same form
相关话题的讨论汇总
话题: 文件话题: wildcards话题: 字符