Re: Need help with SED
kn srivastava <[email protected]>
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <CABOZqg5N0_VZ7NCnSa6K9Ln7jj+eDw2mEjZBiysDz_krJOcwvg@mail.gmail.com> |
This is a Win7 batch script. move is a valid command. Thanx Kailash On Fri, Feb 15, 2013 at 4:33 PM, Eliana <[email protected]> wrote: > 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 >