![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl - SQLite question | garric | Shell Programming and Scripting | 4 | 04-09-2008 08:51 AM |
| sqlite database in HP-UX vs Linux | perlprg | HP-UX | 1 | 05-09-2007 02:56 AM |
| sqlite issue? | brandan | UNIX for Dummies Questions & Answers | 0 | 07-23-2004 10:44 PM |
| rpm hell! | knmwt15000 | UNIX for Dummies Questions & Answers | 7 | 03-27-2002 06:06 AM |
| negative UID/GID?!! I can see 'em but what the hell do they mean?! | hellz | UNIX for Dummies Questions & Answers | 2 | 09-07-2001 03:18 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
hell and sqlite
Hi everyone,
I have a requirement that requires me to fill an sqlite database with 100,000 entries (no duplicates). I will start out by giving the command that will insert the values necessary to populate the database: # sqlite /var/local/database/dblist "insert into list (owner_id,behavior,entry) values(0,0,'newblacklistentry.com') " The challenge would be to get a different output for the entry value 100,000 times! We can start with newurl.com and maybe append a numerical character to the string e.g. newurl1.com newurl2.com newurl3.com * I'm running on Linux Your thoughts? Thanks for looking ![]() Carlo |
|
||||
|
try this:
Code:
#!/bin/sh i=1 while [ $i -le 50 ] do sqlite /var/local/database/dblist "insert into list (owner_id,behavior,entry) values(0,0,'newblacklistentry$i.com') " i=`expr $i + 1` done ![]() |
|
||||
|
Awesome! Works
Thanks scarfake |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|