if file1.txt < file2.txt echo smaller 
Author Message
 if file1.txt < file2.txt echo smaller

JPD> Dont harm the newbe.

Using 4NT (<URL: http://www.*-*-*.com/ ./>) :

                echo "file1.txt is smaller than file2.txt"

                echo "file1.txt is bigger than file2.txt"
                echo "file1.txt and file2.txt are the same size"

Using REXX :

        size1 = stream('file1.txt','c','query size')
        size2 = stream('file2.txt','c','query size')
        when size1 < size2 then
                say "file1.txt is smaller than file2.txt"
        when size1 > size2 then
                say "file1.txt is bigger than file2.txt"
                say "file1.txt and file2.txt are the same size"

Sun, 22 Aug 2004 17:30:13 GMT  
 [ 1 post ] 

 Relevant Pages 

1. File Conversion: UNIX.txt to DOS.txt and trim trailing blanks

2. join file1 file2

3. file1 / file2 ??

4. newbie: grep -1f file1 file2 in Python

5. ADVICE <<<<<<<<<<<<<<<<<<<-----------EASY ---------------

6. Filter thr txt file and eliminate unwanted columns

7. txt -> html converter in awk

8. nawk: hosts.txt makes too many open files

9. read a particular line from txt file

10. nroff format to html - nr2html.txt (1/1)

11. HTML/TXT version of tutoral/devguide



Powered by phpBB® Forum Software