coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday April 26, 2015


 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
15735394 Visitors

cool Statistics
coolcommands:1346
Categories:83
Total queries:647471
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: how to securely copy a directory from one server to another
Example: cd /src_dir; tar -cf - dir1 | ssh dest_server (cd /dest_dir; tar -xf -)
[show me the details]
coolcommand: lsfs - how to find fragment size and number of bytes per inode (nbpi) for a filesystem in IBM AIX
Example: lsfs -q /dev/rootvglv01; lsfs -q /fs1
[show me the details]
coolcommand: how to test if a string has zero length in a shell script
Example: test -z $myvar; [ -z $myvar ]
[show me the details]
coolcommand: how to insert a row in an Oracle database
Example: insert into TABLENAME (TIMESTAMP,VAR1) values (sysdate,'data1');
[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 UNIX54878
Category Solaris53618
Category AIX53443
solaris23822
aix23300

Terms of Use
Privacy
Contact


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