![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TEST command | amatuer_lee_3 | Shell Programming and Scripting | 4 | 05-09-2008 04:36 AM |
| Test command | JWilliams | AIX | 2 | 12-03-2007 10:53 PM |
| test command looks strange... | jjinno | Shell Programming and Scripting | 2 | 11-02-2007 03:31 PM |
| test command is not working | zam | Shell Programming and Scripting | 2 | 07-04-2006 06:42 PM |
| Linux test command | pvar | Linux | 4 | 07-15-2004 03:23 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
the TEST command
Hi everyone,
I am new to UNIX and scripting, and I have some problems with the test command. when i try to execute the command: test 20070327.gz > 20070320.gz i try to make a charachter string comparison between the two strings or the two files, to make sure that 20070327.gz is greater than 20070320.gz but the command is not accepted, i think the shell interprets the > as an input output redirector, not as a (greater than)sign. so, how can I escape this error? Thanks in advance |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|
|
The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
|
| 421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script rsync ftp scp recursive segmentation fault(coredump) sftp script snoop unix solaris change ip address stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script |