![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sed Range Issue | Wrathe | Shell Programming and Scripting | 2 | 06-17-2008 12:54 PM |
| dhcpd - range parameter | Keene44 | IP Networking | 1 | 03-27-2008 10:02 AM |
| Getting 'out of range' when partitioning | pmichner | UNIX for Dummies Questions & Answers | 1 | 09-29-2006 10:51 PM |
| Look a string within a range! | azmathshaikh | Shell Programming and Scripting | 0 | 05-01-2005 12:54 AM |
| Unix SCO 5.0.6 Out of range | josramon | UNIX for Dummies Questions & Answers | 5 | 02-21-2003 11:06 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
specifing range....
hi
i want to create file which will be executed in sqlplus so consider there are abc[1-100] tables and i want count from all the tables now i used for loop for this for eg. Code:
for name in dayj dptm tfj{1,2,3,4,5,6,7,8} tfx{1,2,3,4,5,6,7,8}
do
echo "select count(*) from $name;" >> night_file.sql
done
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
zsh, bash and ksh93 have brace expansion:
Code:
% printf "select count(1) from tfg%d;\n" {1..10}
select count(1) from tfg1;
select count(1) from tfg2;
select count(1) from tfg3;
select count(1) from tfg4;
select count(1) from tfg5;
select count(1) from tfg6;
select count(1) from tfg7;
select count(1) from tfg8;
select count(1) from tfg9;
select count(1) from tfg10;
|
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|