Increase the counter in UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Increase the counter in UNIX
# 1  
Old 03-16-2007
Increase the counter in UNIX

HI! All

Iam facing an issue with split comman in unix
Prifix=Z_PRICE_NEW`date "+%Y%m%d%H%M%S"`
split -5000 Product.txt $Prifix
find . -name "$Prifix*" -print | {
while read FILE;
do
mv $FILE $FILE.txt
done
}

when is execute the comman the command is working fine and generating the files likr this Z_PRICE_NEW20070307032402aa.txt

The issue is my file contains huge data up to 3 GB and after splitting the counter reached Z_PRICE_NEW20070307032402zz.txt
and ends with an error "split exhausted and iam missing records which needs to be splitted further

If any one has face this kind of issue ,you suggerstions will be valuable to me

Regards
Tausif
This User Gave Thanks to mohdtausifsh For This Post:
# 2  
Old 03-16-2007
Code:
-a suffix_length
                          suffix_length letters are used to form the suffix
                          of the output filenames.  This option allows
                          creation of more than 676 output files.  The
                          output file names created cannot exceed the
                          maximum file name length allowed in the directory
                          containing the files

Code:
split -5000 -a 7 Product.txt $Prifix

# 3  
Old 03-16-2007
Thanks a lot Anbu it works
This User Gave Thanks to mohdtausifsh For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

UNIX tool on MacOS that can increase resolution of a file

hi, I am searching for a native tool on MacOS that can increase the resolution of a group of image files whose aspect ratios (file width versus height) vary widely. There are numerous files so I don't wish to do this manually. Someone suggested the sips command with the resampling option but... (5 Replies)
Discussion started by: Godtookapicture
5 Replies

2. Solaris

How to increase history number in UNIX?

Hi All, when i use history command i got the last 1000 command i want to increase this to 10000 how can i do that (4 Replies)
Discussion started by: hosneyxxosman
4 Replies

3. Shell Programming and Scripting

Counter

if ;then echo "mrnet greater 5000" gzip /var/log/mrnet.log mv /var/log/mrnet.log.gz /var/log/mrnet.log.1.gz if ];then i=1 let i++ mv /var/log/mrnet.log.1.gz /var/log/vieux-logs/mrnet.log.$i.gz else echo "theres no... (1 Reply)
Discussion started by: Froob
1 Replies

4. UNIX for Dummies Questions & Answers

Check time and Increase counter

Hi all... the last two weeks have been very educational... I went through a bunch of websites about linux and its commands.. still not have mastered it nor its many operators ... and symbols. I wish I had more time to dig to the next and unix.com but I m on a deadline for this project. I... (2 Replies)
Discussion started by: abilash.amara
2 Replies

5. Shell Programming and Scripting

counter

Hi, I need some help. Shell script counter. i need to add condition to check if counter is more than 10 and longer than 3 hours? it runs every 5 mins. it only check count and send email right now. it runs in cron as below gregcount.ksh gregdb 10 > /tmp/gregcount.out 2> /tmp/gregcount.err ... (1 Reply)
Discussion started by: pega
1 Replies

6. AIX

how to increase the space unix directores

Hi have IBM aix. unix my directories are full when i use $ df -k filesystem kbytes used avail capacity mounted on /dev/root 288880 288880 288880 100% / /proc 0 0 0 ... (4 Replies)
Discussion started by: raosurya
4 Replies

7. UNIX for Dummies Questions & Answers

How to increase buffer size in Unix

The "top" command shows that my buffer size is always at 137M, which I think has reached to the maximum. However, Ido have lots of Inative memory? Is it possible to increae the buffer size? and what is the command for that? Further, this is the buffer for writing to the hard disk? (3 Replies)
Discussion started by: ziabegg
3 Replies

8. UNIX for Advanced & Expert Users

How to increase the buffer size in Unix

When I checked with top command, I found tht my buffers are always 137M, which means that they are sort of overloaded. My Inactive memory is 520M. Is it possible to increaase the buffer size and what would be the command for that? (0 Replies)
Discussion started by: ziabegg
0 Replies

9. UNIX Desktop Questions & Answers

how do I increase the character size in the Unix Box

do anybody has knowledge how do i increase the character size in the UNIX box (1 Reply)
Discussion started by: subir23
1 Replies
Login or Register to Ask a Question