LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2014, 05:49 AM   #1
desiretolearn
LQ Newbie
 
Registered: Jan 2014
Posts: 25

Rep: Reputation: Disabled
suggestion


print "1" > "/tmp/exec_counter_$(date +%Y%m%d)"

can anybody explain me how does it work
 
Old 01-31-2014, 05:57 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,129

Rep: Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272
$(date +%Y%m%d) will generate a string containing a timestamp
"/tmp/exec_counter_$(date +%Y%m%d)" is a filename
print "1" will print the given string
> means print into the file (not onto the screen)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need suggestion vanicenitin Linux - Newbie 4 02-24-2010 06:23 PM
Suggestion for an old PC satterfield.b Linux - General 3 07-06-2005 05:52 PM
Anyone gives me some suggestion Black Raptor Debian 6 06-20-2005 10:35 AM
just a suggestion muddywaters Linux - Newbie 4 05-26-2005 11:46 PM
suggestion moeminhtun LQ Suggestions & Feedback 5 01-16-2003 03:50 AM


All times are GMT -5. The time now is 08:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration