On Sat, Jun 22, 2013 at 12:01 PM, Rich Shepard <[email protected]>wrote:

> On Sat, 22 Jun 2013, wes wrote:
>
> > here is your problem... after testing, you're supposed to remove the echo
> > and run it again to "do it live"
>
> wes,
>
>    If I don't see the correct output echoed to the console then my
> assumption
> is that running it 'live' will move all file names to one, incorrect one.
>

it would try to, except that -i would cause it to prompt you before
overwriting, as paul pointed out.


> The second echo should, if I correctly read the script, print the results
> of
> the mv command to the screen.
>

negative - it does not display the _results_ of the mv command. it displays
the mv command itself. this is to give you the opportunity to spot-check
the intended behavior before clobbering any files. the idea being that if
it looks like what you want, you remove the echo and do it again.

of course, more elegant solutions have been posted so this is all academic
at this point.

-wes
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to