]> Sergey Matveev's repositories - feeder.git/blobdiff - opml2feeds
Use stdin for simplicity and flexibility
[feeder.git] / opml2feeds
index 2e6022e29e4d322aa9711ae0368bd03f6be526a3..36ccc9628d34fb15f85b2867118fd87368c9baf6 100755 (executable)
@@ -4,7 +4,7 @@
 # The folder name will be the title as defined in the @text attr
 
 set -e
-cat $1 | xq '.opml.body.outline[]' -rc | while read outline ; do
+xq '.opml.body.outline[]' -rc | while read outline ; do
        url=$(echo $outline | jq '."@xmlUrl"' -r)
        dir=$(echo $outline | jq '."@text"' -r)
        mkdir -p "$dir"/{cur,new,tmp} # make it maildir