Fedora Linux Support Community & Resources Center
  #1  
Old 8th August 2015, 09:04 PM
techsupport Offline
Registered User
 
Join Date: Dec 2012
Location: East Coast
Posts: 200
linuxfedorafirefox
bash shell program to replace html href or src

example:

directory name before: Abc ?'def "ghi" <klm> *&-=Nop_files/

detoxed directory name: Abc_def_ghi_klm_Nop_files/

Now substitute every reference to this directory in the html file, in order to open the images.


I have a shell script designed to convert references to non-posix windows html directories,
but for some reason, it cannot handle special characters.

ls --quote doesn't work here, as some of these filenames have multiple quotes and other special system characters.

Has anyone detoxed windows html directories,
and then replaced all the references in the html files so that these html files can find the photos etc?

thanks in advance
Reply With Quote
Reply

Tags
bash, href, html, program, replace, shell, src

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
conditionally replace an HTML tag in a large file lothario Using Fedora 8 28th March 2011 03:18 PM
HTML href Help Jamwa Programming & Packaging 4 6th July 2010 07:38 AM
Question about Bash:How can I replace a certain line of a file with a variable ? yu xintian Using Fedora 14 1st December 2009 11:51 PM
How to replace a system default program? axiopisty Using Fedora 2 11th January 2007 09:13 AM
how to use shell program parameters in java program?? srujanabobba Using Fedora 1 10th August 2006 07:24 PM


Current GMT-time: 12:09 (Friday, 24-03-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat