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