Computing.Net > Forums > Unix > Concatenating Files In A Month File Structure

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Concatenating Files In A Month File Structure

Reply to Message Icon

Name: Grizzly
Date: September 10, 2009 at 17:24:32 Pacific
OS: Windows XP
Product: Hp (hewlett-packard) Compaq presario cq60-410us notebook
Subcategory: General
Tags: UNIX, concatenate, script, help
Comment:

Hi Im trying to concatenate a specific file from each day in a year/month/day folder structure using Bash. The file structure ends up like this:
2009/01/01/products
2009/01/02/products
etc.
The file I need is in products for everyday and I need the script to realize when its run out of days and move onto the next month, then realize when its run out of months then move onto the next year. Any ideas?



Sponsored Link
Ads by Google

Response Number 1
Name: Grizzly
Date: September 10, 2009 at 17:27:05 Pacific
Reply:

I forgot to add incase this helps about the file structure.
2009/01/01/products
2009/01/02/products
....
2009/12/31/products

And would it be possible to echo what year/month/day its on?


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Concatenating Files In A Month File Structure

Insert string in a txt file..? www.computing.net/answers/unix/insert-string-in-a-txt-file/6089.html

deleting rows in a file www.computing.net/answers/unix/deleting-rows-in-a-file/3676.html

update a propety in a propety file www.computing.net/answers/unix/update-a-propety-in-a-propety-file/6095.html