mr-b wrote:
> Great - that was it! (The 'file' cmd doesn't seem to be present on PCP
> ('find' couldn't find it), but dos2unix was and it did the job - no more
> errors!) Tx!
> Sorry to interrupt the thread with such Shell Scripting 101 stuff.
Another way to see the line endings is with cat -e (Display
non-printing characters and display a dollar sign (`$') at the end of
each line.)
Code:
--------------------
tc@picoreplayer:/mnt/MUSIC/Other$ cat -e backup.sh
#!/bin/sh$
tar -chzvf /mnt/mmcblk0p2/tce/backup/pCP_and_LMS_prefs_Backup_script.tgz
/usr/local/slimserver/prefs /mnt/mmcblk0p2/tce/mydata.tgz^M$
--------------------
Tony
 SBTouch ♪ SBRadio ♬
------------------------------------------------------------------------
Tony T's Profile: http://forums.slimdevices.com/member.php?userid=34544
View this thread: http://forums.slimdevices.com/showthread.php?t=112456
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix