Re: Need help with SED

"Eliana" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <TkcMail.1360942212.1499.1@zaurus>
the bash command to rename files is mv, not move.

if this is in bash, try changing your line from

move junk.txt "%%a"

to the following

mv  junk.txt "%%a"

> @echo off
> dir /b /s | find ".pscx" > mydir.txt
> pushd .
> for /F "delims==" %%a in (mydir.txt)
> do (
> 	echo "%%a"
> 	sed -i "s/1.0101/1.0400/g" "%%a" > junk.txt
> 	move junk.txt "%%a"
> )
> popd
> del mydir.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.