![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Split file into multiple files depending upon first 4 digits | deepakgang | Shell Programming and Scripting | 4 | 04-09-2008 01:21 AM |
| split file depending on content | Chaitrali | Shell Programming and Scripting | 4 | 11-14-2007 09:15 AM |
| while - comparision | sharif | Shell Programming and Scripting | 2 | 11-01-2007 05:58 AM |
| How can I rename multiple files depending on a string occuring in the filenames? | karman | UNIX for Dummies Questions & Answers | 6 | 05-22-2007 02:29 PM |
| Invoke script depending on previous scripts | mpang_ | Shell Programming and Scripting | 0 | 06-26-2006 02:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Do commands depending on the comparision
Dear all,
I am writing a shell, that do commands if the file count reaches 96. I wrote a shell, but doesn't work Code:
#!/bin/sh MIN_FILE_COUNT=96; GET_PATH=/home/collection/data1; export GET_PATH FILES_COUNT=`ls $dirname | wc -l` if [ $FILES_COUNT > $MIN_FILE_COUNT ] then echo "commands listed here" fi test.sh: line 9: syntax error near unexpected token `fi' test.sh: line 9: `fi' Thank you very much |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|