The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Friendz.. plz help me on this date function. psn123 UNIX for Advanced & Expert Users 14 07-23-2008 04:09 PM
Date Function charandevu Shell Programming and Scripting 1 04-02-2008 09:12 AM
Date Function charandevu Shell Programming and Scripting 1 04-02-2008 07:44 AM
Yesterday's date function ssmiths001 UNIX for Dummies Questions & Answers 4 01-11-2005 10:06 AM
Date function question crpalermo UNIX for Dummies Questions & Answers 12 10-13-2003 03:38 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-27-2006
abey abey is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 27
date function

hi,

I have to ftp previous days file from a directory to another location. The name of the files are like "xxx20060225" (yyyymmdd format)
"xxx20060226"

ls -lrt xxx*| tail -2| head -1 will give me the file, but if i could get anything related to the "date" function to get that previous days filename, it would have been great.



thanx,

abey
  #2 (permalink)  
Old 02-27-2006
matrixmadhan matrixmadhan is online now Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,952
many times you would have come across forum members specifying datecalc.
Search for that script.
  #3 (permalink)  
Old 02-27-2006
abey abey is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 27
hi,


thanx....

abey
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0