Results 1 to 2 of 2
Please help need a script to achieve saving multiple text files as 0001 0002 0003 etc.
or moving files to a folder displayed this way..
there prolly is an " ...
- 04-01-2010 #1Just Joined!
- Join Date
- Apr 2010
- Location
- NJ
- Posts
- 1
Need to save textfile'$+1'.txt
Please help need a script to achieve saving multiple text files as 0001 0002 0003 etc.
or moving files to a folder displayed this way..
there prolly is an " if " statement involved also...
if 0001 exist then %+1 and so on.
Any help will be greatly appreciated,
Thanks in advance,
joe
- 04-01-2010 #2
I don't understand. To generate files 0001 to some file n, all you have to do is:
This would create files 0001 to 0100.Code:for num in $(seq -w 0001 0100); do touch "$num" doneDISTRO=Arch
Registered Linux User #388732


Reply With Quote