Warning: Work in Progress...
This is a discussion on need help!!! within the Programming (C#, C++, JAVA, VB, .NET etc. ) forums, part of Computer World category; hi, nt quite sure why i am posting it in BF and whether nyone will reply or nt. I need to create multiple output file like output_1.txt output_2.txt ...output_100.txt in ...

Advertisement
Want to advertise? Learn how to remove ads

Notices

Tags : help
Thread Tools   Switch to Linear ModeSwitch to Hybrid ModeSwitch to Threaded Mode
goru's Avatar
goru
Experienced Member
Posts/Threads: 615/24
Thanks: 126
Thanked 451 Times in 232 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Rep Power/Points: 256/21626
goru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond repute
Default need help!!!, Posted July 26th, 2006, 07:01 PM #1 (permalink) |
hi, nt quite sure why i am posting it in BF and whether nyone will reply or nt.

I need to create multiple output file like
output_1.txt
output_2.txt
...output_100.txt
in a DO loop.

any one have any idea, i think in banglaforum there are quite a few good programming expert exits.
| Reply With Quote
dljp's Avatar
dljp
New Member
Posts/Threads: 16/6
Thanks: 1
Thanked 14 Times in 11 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Rep Power/Points: 0/551
dljp is an unknown quantity at this pointdljp is an unknown quantity at this pointdljp is an unknown quantity at this pointdljp is an unknown quantity at this pointdljp is an unknown quantity at this pointdljp is an unknown quantity at this point
Default Posted December 14th, 2006, 01:36 PM #2 (permalink) |
Quote:
Originally Posted by goru
View Post
hi, nt quite sure why i am posting it in BF and whether nyone will reply or nt.

I need to create multiple output file like
output_1.txt
output_2.txt
...output_100.txt
in a DO loop.

any one have any idea, i think in banglaforum there are quite a few good programming expert exits.
Write a shell script that you can make executable.
-----------------------------------------------------------------------
#!/bin/sh
set -x

varx=1

HOME_DIR=/home/user/workingdirectory
cd ${HOME_DIR}
while [ $varx -le 100 ]; do
touch output_${varx}.txt
varx=`expr $varx + 1 `
done
--------------------------------------------------------------------------
Put the path of the current directory in the place of /home/user/workingdirectory

Copy what is written within the lines above in a text file. Name the text file anything, say, createfile

Use the command

chmod 775 createfile

in a shell terminal. Then execute by writting
./createfile

You can also do the same in a terminal command line directly.

Of course, all these are for Linux/Unix environment.

| Reply With Quote
The Following User Says Thank You to dljp For This Useful Post:
mina (October 30th, 2007)
mina's Avatar
mina
~Brishti Bilashini~
Posts/Threads: 7,478/575
Thanks: 6,447
Thanked 3,266 Times in 2,045 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Blog Entries: 24
Rep Power/Points: 1763/159461
mina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond repute
Default Posted October 30th, 2007, 12:46 AM #3 (permalink) |
Thanks to dljp...

is this helped Goru??
--------------------------------------------


| Reply With Quote
The Following User Says Thank You to mina For This Useful Post:
goru (November 13th, 2007)
goru's Avatar
goru
Experienced Member
Posts/Threads: 615/24
Thanks: 126
Thanked 451 Times in 232 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Rep Power/Points: 256/21626
goru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond reputegoru has a reputation beyond repute
Default Posted November 10th, 2007, 02:59 PM #4 (permalink) |
Quote:
Originally Posted by mina
View Post
Thanks to dljp...

is this helped Goru??
it was 1 n half years ago, i forgot now why i had to do that coding
| Reply With Quote
The Following User Says Thank You to goru For This Useful Post:
mina (November 12th, 2007)
mina's Avatar
mina
~Brishti Bilashini~
Posts/Threads: 7,478/575
Thanks: 6,447
Thanked 3,266 Times in 2,045 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Blog Entries: 24
Rep Power/Points: 1763/159461
mina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond reputemina has a reputation beyond repute
Default Posted November 12th, 2007, 10:43 PM #5 (permalink) |
Quote:
Originally Posted by goru
View Post
it was 1 n half years ago, i forgot now why i had to do that coding
bhalo hoyeche...ami mone jiggeshe kore onek dosher kaj kore felechi
--------------------------------------------


| Reply With Quote
The Following User Says Thank You to mina For This Useful Post:
goru (November 13th, 2007)
Reply  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Display Modes
Linear Mode Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Advertisement
Want to advertise? Learn how to remove ads


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright ©2005 - 2008, doshomik.net
All times are GMT +7. The time now is 07:02 AM.