Skip to main content
added text
Source Link
Rick T
  • 357
  • 1
  • 8
  • 20

I can get a url link and search for text that starts with file: but I'm having issues parsing it from there.

Example:

wget -qO- http://website.com/site/ | tr \" \\n | grep -w file:\* > output.txt 

The wget command Gives me the output:

file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', 

I'm trying to get the output to look like.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs 

My goal is to have a bash script that includes several source / list of url's that will be looped through and each processed / grep'd output url will be on it's own separate line.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs

As requested:

Here's an example of the output of what wget -qO- http://website.com/site/ sends back.

player.setup({ file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', width: "100%", aspectratio: "16:9", }); 

I can get a url link and search for text that starts with file: but I'm having issues parsing it from there.

Example:

wget -qO- http://website.com/site/ | tr \" \\n | grep -w file:\* > output.txt 

The wget command Gives me the output:

file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', 

I'm trying to get the output to look like.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs 

My goal is to have a bash script that includes several source / list of url's that will be looped through and each processed / grep'd output url will be on it's own separate line.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs

I can get a url link and search for text that starts with file: but I'm having issues parsing it from there.

Example:

wget -qO- http://website.com/site/ | tr \" \\n | grep -w file:\* > output.txt 

The wget command Gives me the output:

file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', 

I'm trying to get the output to look like.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs 

My goal is to have a bash script that includes several source / list of url's that will be looped through and each processed / grep'd output url will be on it's own separate line.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs

As requested:

Here's an example of the output of what wget -qO- http://website.com/site/ sends back.

player.setup({ file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', width: "100%", aspectratio: "16:9", }); 
added 17 characters in body
Source Link
Rick T
  • 357
  • 1
  • 8
  • 20

I can get a url link and search for text that starts with file: but I'm having issues parsing it from there.

Example:

wget -qO- http://website.com/site/ | tr \" \\n | grep -w file:\* > output.txt 

GivesThe wget command Gives me the output:

file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', 

I'm trying to get itthe output to look like.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs 

My goal is to have a bash script that includes several source / list of url's that will be looped through and each processed / grep'd output url will be on it's own separate line.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs

I can get a url link and search for text that starts with file: but I'm having issues parsing it from there.

Example:

wget -qO- http://website.com/site/ | tr \" \\n | grep -w file:\* > output.txt 

Gives me the output:

file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', 

I'm trying to get it to look like.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs 

My goal is to have a bash script that includes several source / list of url's that will be looped through and each processed / grep'd output url will be on it's own separate line.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs

I can get a url link and search for text that starts with file: but I'm having issues parsing it from there.

Example:

wget -qO- http://website.com/site/ | tr \" \\n | grep -w file:\* > output.txt 

The wget command Gives me the output:

file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', 

I'm trying to get the output to look like.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs 

My goal is to have a bash script that includes several source / list of url's that will be looped through and each processed / grep'd output url will be on it's own separate line.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs

Added bold
Source Link
Rick T
  • 357
  • 1
  • 8
  • 20

I can get a url link and search for text that starts with file: but I'm having issues parsing it from there.

Example:Example:

wget -qO- http://website.com/site/ | tr \" \\n | grep -w file:\* > output.txt 

gives me:Gives me the output:

file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', 

I'm trying to get it to look like.I'm trying to get it to look like.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs 

My goal is to have a bash script that includes several source / list of url's that will be looped through and each processed / grep'd output url will be on it's own separate line.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs

I can get a url link and search for text that starts with file: but I'm having issues parsing it from there.

Example:

wget -qO- http://website.com/site/ | tr \" \\n | grep -w file:\* > output.txt 

gives me:

file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', 

I'm trying to get it to look like.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs 

My goal is to have a bash script that includes several source / list of url's that will be looped through and each processed / grep'd output url will be on it's own separate line.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs

I can get a url link and search for text that starts with file: but I'm having issues parsing it from there.

Example:

wget -qO- http://website.com/site/ | tr \" \\n | grep -w file:\* > output.txt 

Gives me the output:

file: 'http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs', 

I'm trying to get it to look like.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs 

My goal is to have a bash script that includes several source / list of url's that will be looped through and each processed / grep'd output url will be on it's own separate line.

http://website.com/site/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyXs

textt
Source Link
Rick T
  • 357
  • 1
  • 8
  • 20
Loading
textt
Source Link
Rick T
  • 357
  • 1
  • 8
  • 20
Loading
textt
Source Link
Rick T
  • 357
  • 1
  • 8
  • 20
Loading
Source Link
Rick T
  • 357
  • 1
  • 8
  • 20
Loading