From owner-freebsd-questions@FreeBSD.ORG Sun Aug 31 04:54:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22724106566B for ; Sun, 31 Aug 2008 04:54:59 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.228]) by mx1.freebsd.org (Postfix) with ESMTP id C9F788FC08 for ; Sun, 31 Aug 2008 04:54:58 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so897143wra.27 for ; Sat, 30 Aug 2008 21:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=kPu8TZLw6y9hGNhC4xpdkfvy3ZFFwyPyoxhPV3lMraA=; b=lOeURdUUuXiywqY6xCcYYj8qFa9VmzQSEDbePN6/POOUSuENoPYJY1SOPY55iZtioT WNu/WId/sJRotV4VKzVXSYccgbFoqYNxfUSJMzRexLQt2LxtRfQBm4jA02j61pRZRtEb CplbhSXIeJ+m7QVUxzYWX6g6rjBdquHo9dvuw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Ed359T0tJBuLz5kzLjYti7bNFugqLL4U9g3Pqsky26U03UoUH7VZv4xyUUS/uevtTg aN8Zk1s6vrxW2hz5R2lA+Rt/PvudB1C23z/+4/K3m3NYMa8lc6+rd/QNsFGQMM98GFk1 knsKC+PXd8f1zW0yTcvVtz6XUUgNYwO+YByxU= Received: by 10.90.101.7 with SMTP id y7mr5834860agb.13.1220158497385; Sat, 30 Aug 2008 21:54:57 -0700 (PDT) Received: by 10.90.89.18 with HTTP; Sat, 30 Aug 2008 21:54:57 -0700 (PDT) Message-ID: <89ce7f740808302154m159ff123r36d787648b6fa6dc@mail.gmail.com> Date: Sun, 31 Aug 2008 07:54:57 +0300 From: "Ivan \"Rambius\" Ivanov" To: "FreeBSD Questions" In-Reply-To: <48ba12a8.13Xw0Q1qzIqVH3mb%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <89ce7f740808301652g169fa4d2v3fe5eff06100e31e@mail.gmail.com> <48ba12a8.13Xw0Q1qzIqVH3mb%perryh@pluto.rain.com> Subject: Re: Formatting dates to a specific pattern X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2008 04:54:59 -0000 Hello, Thank you for all of your responses. I received earlier a private answer from another member of list. He told me to use the '-' sign after '%' in the date pattern of date(1) command: $ date +%-m%-d%Y This one seems to not include leading zeros and I reworked it to $ date +%-m-%-d-%Y to fit my needs :) Regards Rambius -- Tangra Mega Rock: http://www.radiotangra.com