- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Refer to last *.aft file.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2004 06:17 PM
01-06-2004 06:17 PM
Refer to last *.aft file.
I have a software that takes the backup and generates the log of every backup in seperate file. usually this file is ????????.fnt and on wednesday it is ????????.fft (? is refering to random character).
now what i want to do is to send this file as email to myself and the backup administrator.
what i want to know is that how can i refer to the latest file which may be .fnt and .fft. I want its name to be appeared in the variable and then i'll use it in the script.
hope u ppl have understand my problem.
thanks in advance,
Yasir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2004 06:28 PM
01-06-2004 06:28 PM
Re: Refer to last *.aft file.
#ls -t|head -1
to get the latest file from that dir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2004 07:45 PM
01-06-2004 07:45 PM
Re: Refer to last *.aft file.
VAR=$(ls -td ????????.fft ????????.fnt | head -1)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2004 08:18 PM
01-06-2004 08:18 PM
Re: Refer to last *.aft file.
I would look to change the s/w to create files with more meaningful name first but to answer your question
ls -tr | tail -1
what backup s/w are you using ?
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2004 09:04 PM
01-06-2004 09:04 PM
Re: Refer to last *.aft file.
thanks to all of you.
Yasir.