Forum: Shell Scripting Apr 23rd, 2009 |
| Replies: 3 Views: 1,341 Sorry about the delayed response. Been working insane hours.
Try NextNumber=$(( NextNumber + 1 )) or ((NextNumber++)).
You may want to take a look at this thread: Increment integer using Shell... |
Forum: Shell Scripting Mar 25th, 2009 |
| Replies: 3 Views: 1,341 I think you should take a quick look at this thread: Adding a new column in a text file (http://www.daniweb.com/forums/thread181214.html). It seems that they are requesting something very similar to... |
Forum: Shell Scripting Mar 25th, 2009 |
| Replies: 2 Views: 1,349 You may want to include >nul 2>&1 at the end of the md as the script will undoubtedly list errors after creating the directory the first time.
Ex:
for /f "delims=." %%n in ('dir /b *.exe') do (md... |
Forum: Shell Scripting Sep 28th, 2008 |
| Replies: 10 Views: 2,545 In reference to this comment:
Have you tried xargs? With maybe a loop that terminates at end of line/file? Just giving you another option.
I personally agree with Gromit about using PERL or... |
Forum: Shell Scripting Jun 9th, 2007 |
| Replies: 2 Views: 1,853 Unfortunately, I need to rearrange the partitions on my laptop so that I can boot linux so I can't test your script out, but...
You might want to check out this for some tips on using the $RANDOM... |
Forum: Shell Scripting Oct 16th, 2005 |
| Replies: 2 Views: 11,775 You were off to a good start.
Here what I did:
./first
./killdup
#!/bin/sh |