tr from the command line

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Matt Alexander
日付:  
題目: tr from the command line
for file in `ls *log`;do mv $file `echo $file | sed 's/_log$/.log/'`;done


On Tue, 14 May 2002, Carl Parrish wrote:

> I've got a lot of files called *_log. I want to change them all to *.log. I *think* I want to use the tr command. Can anyone give me the syntax? my undertanding from the info and man files isn't working.
>
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> PLUG-discuss mailing list -
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>