Search Results

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: mittelgeek ; Forum: Shell Scripting and child forums
Forum: Shell Scripting Apr 23rd, 2009
Replies: 3
Views: 1,341
Posted By mittelgeek
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
Posted By mittelgeek
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
Posted By mittelgeek
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
Posted By mittelgeek
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
Posted By mittelgeek
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
Posted By mittelgeek
You were off to a good start.

Here what I did:

./first


./killdup
#!/bin/sh
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC