in reply to File Compression

"While compressing if the compressed file reaches 2 GB then i have to create new compressed file because In Linux maximum file size is 2GB"

That is a rather sweeping statement, which file system are you using?

Update: You may want to look at Algorithm::Knapsack and the associated script filesack "The filesack program finds one or more subsets of files or directories with the maximum total size not exceeding a given size."

Martin