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

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -