Solution : [jradtke@neo bin]$ echo $TEMP | sed 's/'\''/'\\\\\''''/g' ./jradtke/Music/Metric/Fantasies/01 Help, I\'m Alive.mp3 Issue : In an attempt to make my Lenovo tablet and Linux desktop (Fedora 16 with Amarok) experience more like my iPad and Apple desktop (OSX with iTunes) - I am trying to create a script to "sync" everything. The feature I need most is the ability to sync only my "top rated" music files to my tablet (since I have a 32GB SD card and my music collection is around 60GB). I figured out how to poll the MySQL database that I configured for Amarok to get the file locations, but some of the locations use a single quote in the filename. Such as the word "I'm". See the following: NOTE: $TMPSYNC is a file which is the result of the query to my Amarok database #!/bin/bash MINRATING=7 # Minimum Song rating to sync to TABLET SQLCMD="SELECT rpath FROM urls WHERE id IN (SELECT i...
Linux: The whole world made it for you... This blog is a collection of things I come across either at home or at work as a Linux Administrator. I have worked as an Admin working with Solaris, SAN, Backups and Linux at the Enterprise level for over 16 years.