Couple of bash questions

Dave Mason dmason-bqArmZWzea/GcjXNFnLQ/w at public.gmane.org
Sun Oct 28 17:03:38 UTC 2007


To debug problems like this use "set -x" which causes the shell to tell
you every command it actually executes:

; set -x
; i='rescue.me.306.ws.dsr-dimension.[VTV].avi'
+ i='rescue.me.306.ws.dsr-dimension.[VTV].avi'
; touch "$i"
+ touch 'rescue.me.306.ws.dsr-dimension.[VTV].avi'
; mv "$i" "`echo X $i|sed 's/^X \([^.]*\).*\(\.[^.]*\)$/\1\2/'`"
++ sed 's/^X \([^.]*\).*\(\.[^.]*\)$/\1\2/'
++ echo X 'rescue.me.306.ws.dsr-dimension.[VTV].avi'
+ mv 'rescue.me.306.ws.dsr-dimension.[VTV].avi' rescue.avi
; set +x

So... WFM.  I don't know what your problem might be, but set -x will
probably help you figure it out.

../Dave
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list