* Provide a shortcut to output files sharing the same name and path with source?
@ 2016-11-21 12:19 Kolen Cheung
[not found] ` <70654604-cb5b-41e7-ae54-e95cff0310ed-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Kolen Cheung @ 2016-11-21 12:19 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 826 bytes --]
I wrote a custom script to do this in the past, but I’m now thinking it
probably would be useful to many others if this is build into pandoc. e.g. -o
"" set the convention that tell pandoc to auto-generate the path and
filename.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/70654604-cb5b-41e7-ae54-e95cff0310ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2661 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Provide a shortcut to output files sharing the same name and path with source?
[not found] ` <70654604-cb5b-41e7-ae54-e95cff0310ed-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-11-21 16:59 ` BP Jonsson
[not found] ` <CAFC_yuTNzLRLcFR_HrjF3TVoFwjvqwsOhUKRYb=6HwoidFO7yg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: BP Jonsson @ 2016-11-21 16:59 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 2084 bytes --]
My wrapper script replaces an asterisk in the output filename with the
input filename minus extension, provided there is only one input file or
batch mode, so you say e.g. `-o '*.pdf'`. Hilarity ensues if you forget the
quotes though, so perhaps some other character would be better, assuming
there *is* any suitable character which isn't special to any shell...
/bpj
Den 21 nov 2016 13:19 skrev "Kolen Cheung" <christian.kolen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> I wrote a custom script to do this in the past, but I’m now thinking it
> probably would be useful to many others if this is build into pandoc. e.g. -o
> "" set the convention that tell pandoc to auto-generate the path and
> filename.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/pandoc-discuss/70654604-cb5b-41e7-ae54-e95cff0310ed%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/70654604-cb5b-41e7-ae54-e95cff0310ed%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuTNzLRLcFR_HrjF3TVoFwjvqwsOhUKRYb%3D6HwoidFO7yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: Type: text/html, Size: 4411 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Provide a shortcut to output files sharing the same name and path with source?
[not found] ` <CAFC_yuTNzLRLcFR_HrjF3TVoFwjvqwsOhUKRYb=6HwoidFO7yg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-11-22 19:31 ` 'Jakob Voss' via pandoc-discuss
0 siblings, 0 replies; 3+ messages in thread
From: 'Jakob Voss' via pandoc-discuss @ 2016-11-22 19:31 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1209 bytes --]
BP Jonsson wrote:
My wrapper script replaces an asterisk in the output filename with the
> input filename minus extension, provided there is only one input file or
> batch mode, so you say e.g. `-o '*.pdf'`. Hilarity ensues if you forget the
> quotes though, so perhaps some other character would be better, assuming
> there *is* any suitable character which isn't special to any shell...
>
The character sequence "{}" can be used unquoted, it has also been used as
replacement string in xargs and find and it will unlikely be part of a
normal filename. I created https://github.com/jgm/pandoc/issues/3250 for
this suggestion.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7b18acb0-7b8d-44b0-af81-7da8f57f2821%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1796 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-22 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-21 12:19 Provide a shortcut to output files sharing the same name and path with source? Kolen Cheung
[not found] ` <70654604-cb5b-41e7-ae54-e95cff0310ed-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-11-21 16:59 ` BP Jonsson
[not found] ` <CAFC_yuTNzLRLcFR_HrjF3TVoFwjvqwsOhUKRYb=6HwoidFO7yg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-22 19:31 ` 'Jakob Voss' via pandoc-discuss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).