The following will run a shell script and store the results in a juypter
variable ŒdataSet¹

dataSets = !aws s3 ls
s3://com.pws.twitter/json/StreamingKafkaGnipCollector/gnip/ |grep PRE | awk
-F'PRE' '{print $2}'


If I try and define a variable that represents the URL the command will
fail. 

baseURL="s3://com.pws.twitter/json/StreamingKafkaGnipCollector/gnip/"
!echo $baseURL
dataSets = !aws s3 ls $baseURL | grep PRE | awk -F'PRE' '{print $2}¹

The problem is with my awk command. I think maybe the note book is trying to
expand $2. 

Any idea how I can fix this?

Thanks

Andy


-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/D3A97FFB.40D33%25Andy%40SantaCruzIntegration.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to