![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to ensure lines are in sequence | docaia | Shell Programming and Scripting | 5 | 05-30-2008 01:13 PM |
| checking jump sequence number (part2) | happyv | Shell Programming and Scripting | 3 | 10-19-2006 03:03 AM |
| Script in boot sequence | delphine | UNIX for Dummies Questions & Answers | 1 | 01-25-2006 08:20 AM |
| Script to check for a file, check for 2hrs. then quit | mmarsh | UNIX for Dummies Questions & Answers | 2 | 09-16-2005 11:46 AM |
| Knoppix ---> Slackware the big jump, should I? | Jace | UNIX for Dummies Questions & Answers | 7 | 12-16-2004 09:53 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
help - script can check jump sequence?
Hi,
if I have a lot of files like (AABBCC0010, AABBCC0011, AABBCC0012....AABBCC1000), can I write a small script to check any sequence number jump and show me the result which sequence number? #The first sequence may start from 0010 or 0101... Thank you!! |
| Forum Sponsor | ||
|
|
|
|||
|
not work..
when I run the script, it showing the error below: expr: non-numeric argument comparing SIMAC and ... ksh: test: argument expected file names SIMAC are not in sequence expr: non-numeric argument comparing SIMAC and ... ksh: test: argument expected file names SIMAC are not in sequence expr: non-numeric argument |
|
||||
|
The variable previous is not initialised.
Modify the script : Code:
if [ $start -eq 1 ] ; then # this is the first pass of the loop, so we've got nothing to compare start=0 previous=$file_number else Jean-Pierre. |
||||
| Google The UNIX and Linux Forums |