I suppose that you want the command line interface because you're 
comfortable with unix-style commands. But you might be able to do what you 
want without having to use a separate language. 

This will create tiddlers that count the number of tiddlers marked 'Widget' 
and store it in a tiddler. You could modify for tag[tag1]tag[tag2] or 
whatever you wanted to count:

<$button>
<$wikify name="cnt" text="<$count filter='[tag[Widgets]]'/>">
<$action-createtiddler $basetitle="Current Widget Count"  text=<<cnt>>/>
Record number of widgets
</$wikify>
</$button>

Good luck,
Mark

On Tuesday, June 20, 2017 at 4:09:34 AM UTC-7, stevesuny wrote:
>
> Hello,
>
> Was wondering if anyone has built an interface to the command line from 
> tiddlywiki. 
>
> For example, given a tiddler tagged tag1 tag2 tag3, I might want to run 
> these commands at the command line, from within tiddlywiki. 
>
> grep tag1 ~/Documents/filename| grep tag2 | grep tag3  |cut -f3 > 
> ~/Documents/outputs/grepped.lines
> wc -l ~/Documents/outputs/grepped.lines > grepped.lines.linecount
>
>
> and be able to import grepped.lines and grepped.lines.linecount as 
> tiddlers.
>
> Doable?
>
> I suppose I could generate the commands in a tiddler, export it as a text 
> file, and use it as a script, but was hoping to do it in one step.
>
>
> Thanks,
>
> //steve.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8671fb4c-151b-4beb-8d01-a335eaebe071%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to