Avatar of sam2929
sam2929
 asked on

format by...

i have few files like

aa__201108021126120130_test1.csv
aa__201108021126120130_test2.csv
bb_201107021126120130_test1.csv
bb__201107021126120130__test2.csv

i want the format by date,file type(test1 or test2), number of files on that date, bytes or megs per file,how can i do that.

Thanks
Unix OS

Avatar of undefined
Last Comment
arnold

8/22/2022 - Mon
arnold

Could you provide some additional detail as well as explain what it is we are looking at?

are you looking to extract this data from the csv or the filenames are what you mean.

Is Perl an option?
sam2929

ASKER
this should be simple command i guess all i want is for below files
aa__201108021126120130_test1.csv
aa__201108021126120130_test2.csv
bb_201107021126120130_test1.csv
bb__201107021126120130__test2.csv

Result should be
20110821 has 2 files for test1 with file size of 2g
2011821  has  1 file for test2 with file size 1 g and so on

arnold

Is this a school assignment?

Your results do not match the information.

Are you insterested in the data within the file or just the information based on the filename?


Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
sam2929

ASKER
just information based upon the filename
ls -alg do give information but i just want information based upon file
ASKER CERTIFIED SOLUTION
arnold

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question