coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Thursday May 5, 2016


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 21 guests online

Newest Member

nbewwmbxog

Hit Counter
17755346 Visitors

cool Statistics
coolcommands:1346
Categories:83
Total queries:658045
Members:22813





Category Search coolcommands.com
Select Category:


coolcommand

how to test if file1 is older than file2 in a korn shell script
Description

The test command evaluate a condition and, if its value is true, return a zero exit status; otherwise, return a nonzero exit status. An alternate form of the command uses [ ] rather than the word test.

# test file1 -ot file2

or

[ file1 -ot file2 ]
Example

test file1 -ot file2; [ file1 -ot file2 ]

Return to search results





Random coolcommands

coolcommand: awk oneliner to print single quotes
Example: awk '{printf("Here is a single \'\''quote\'\'' example.\n")}'
[show me the details]
coolcommand: how to match a string like linux or solaris in ksh
Example: if [[ "$1" = @(linux|solaris) ]];then echo Match; fi
[show me the details]
coolcommand: change a server hostname with uname command in IBM AIX
Example: uname -S new_hostname
[show me the details]
coolcommand: prtconf - hardware information IBM AIX
Example: prtconf
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1167
audet37
kah00na32
Mariom24
lebjf00015

Top 5 Searches

Category General UNIX59130
Category AIX54377
Category Solaris54176
solaris23972
aix23397

Terms of Use
Privacy
Contact


 
coolcommands.com © 2016. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum