The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Replace spaces
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 10-06-2008
tret tret is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 29
Quote:
Originally Posted by vidyadhar85 View Post
post sample input and output record
this is a sample of the code I have to get the file "GetSeries.php.xml" from thetvdb.com


Code:
series_name="green hornet"

curl -s -o /Users/rtipton/Desktop/GetSeries.php.xml "http://thetvdb.com/api/GetSeries.php?seriesname=$series_name"

When I run this, I get a bunch of results in the xml for tv shows including "green" in the title. Curl doesn't include anything after the first space in the URL.

I'm not sure what output I could provide in this instance, let me know if I can give more

Thanks again Vid