Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] date+filename
Date: Tue, 14 Mar 2017 10:51:44
Message-Id: 20170314105126.474817d6@digimed.co.uk
In Reply to: [gentoo-user] date+filename by thelma@sys-concept.com
1 On Mon, 13 Mar 2017 17:10:40 -0600, thelma@×××××××××××.com wrote:
2
3 > I'm trying to add to Xface menu: Configure Custom Actions
4 > This:
5 > pdfunite %N folder/`date +%F`-output.pdf
6 >
7 > The file in dir folder gets created ("-output.pdf") but is missing the
8 > date.
9 >
10 > This works from command line:
11 > pdfunite 1.pdf 2.pdf folder/`date +%F`-output.pdf
12
13 Command substitution is a shell feature, so it may h=not work elsewhere.
14 The solution may be to write a one line shell script and have XFCE call
15 that.
16
17 #!/bin/sh
18 pdfunite $* $(date +%F)-output.pdf
19
20
21 --
22 Neil Bothwick
23
24 Top Oxymorons Number 44: Advanced BASIC

Replies

Subject Author
Re: [gentoo-user] [SOLVED] date+filename thelma@×××××××××××.com