ls - How do I list all files but only show the fist N characters of the filenames? -
how list files show fist n characters of filenames?
for example if filname abc_2015-01-03-08-00-35.csv
in directory , done ls
in directory lte_2015-01-03
1st 14 characters.
i'm thinking use ls
command not sure after that?
you can use cut so:
ls | cut -c1-14
i'm assuming don't care extensions or like.
Comments
Post a Comment