LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-19-2014, 01:34 AM   #16
bsdfan
Member
 
Registered: Jun 2010
Distribution: Debian 5.0.2/openBSD3.3,3.6,4.0
Posts: 45

Original Poster
Rep: Reputation: -1

How to include current date on script below:

DATE=`date +%f %s %TY-%Tm-%Td`
find $1/$2* -printf "%f %s %TY-%Tm-%Td %TH:%TM\n"

I copy from other forums.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use Big O, Big Omega, and Big Theta to find running time of algorithms naveed17 Programming 3 03-17-2011 10:25 AM
using stat to determine last file access and comparing to current date in IF statemnt danpaluska Linux - Newbie 2 02-16-2010 11:52 AM
shell script to find modified date and last accessed date of any file. parasdua Linux - Newbie 6 04-22-2008 09:59 AM
Appending current date and time to a file frankietomatoes Linux - General 5 11-18-2002 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration