Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [SOLVED] date+filename
Date: Tue, 14 Mar 2017 12:33:34
Message-Id: ba4c800b-411c-32f5-fa46-003fe428422a@sys-concept.com
In Reply to: Re: [gentoo-user] date+filename by Neil Bothwick
1 On 03/14/2017 04:51 AM, Neil Bothwick wrote:
2 > On Mon, 13 Mar 2017 17:10:40 -0600, thelma@×××××××××××.com wrote:
3 >
4 >> I'm trying to add to Xface menu: Configure Custom Actions
5 >> This:
6 >> pdfunite %N folder/`date +%F`-output.pdf
7 >>
8 >> The file in dir folder gets created ("-output.pdf") but is missing the
9 >> date.
10 >>
11 >> This works from command line:
12 >> pdfunite 1.pdf 2.pdf folder/`date +%F`-output.pdf
13 >
14 > Command substitution is a shell feature, so it may h=not work elsewhere.
15 > The solution may be to write a one line shell script and have XFCE call
16 > that.
17 >
18 > #!/bin/sh
19 > pdfunite $* $(date +%F)-output.pdf
20
21 Yes, that is what I end up doing, calling a bash script, it is easier to
22 implement.
23
24 pdfunite %N pdfunite-join.pdf && sh combine_files.sh
25
26 --
27 Thelma