- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to find latest verison of a file in 2 seper...
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
06-06-2000 08:07 AM
06-06-2000 08:07 AM
Script to find latest verison of a file in 2 seperate directories
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 08:16 AM
06-06-2000 08:16 AM
Re: Script to find latest verison of a file in 2 seperate directories
if [ file1 -nt file2 ]
then
fi
Never tried to use it on directories.
If what you are trying to do is quite complex, look at the make command. It isn't just for making programs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 08:39 AM
06-06-2000 08:39 AM
Re: Script to find latest verison of a file in 2 seperate directories
Read online manual for find.
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 10:22 AM
06-07-2000 10:22 AM
Re: Script to find latest verison of a file in 2 seperate directories
# touch -t 200006070000 time_stamp
then:
# find . -newer time_stamp -print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 01:36 PM
06-07-2000 01:36 PM
Re: Script to find latest verison of a file in 2 seperate directories
try this script
fcomp:
#!/usr/bin/ksh
if [ $# -ne 2 ]
then
echo "Error: Usage: fcomp file1 file2"
file1=$1
file2=$2
if [ $file1 -nt $file2 ]
then
echo "$file1 is newer than $file2"
fi