Re: about quote in command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 06, 2007 at 08:11:51PM +0100, Sjoerd Mullender wrote:
> On 2007-12-06 18:59, adrian kok wrote:
> > Hi all

> $(tail -n 1 $(date "+%Y-%m-%d-%H").txt)

This is the preferred syntax, because:

* The nesting problem others have noted.

* The `` syntax is deprecated and may eventually go away. It is
  retained mainly for backward compatibility.

* $() will tickle parentheses matching tools in some editors such as
  emacs, making the code easier to read.

-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux