how to remove time stamp using bash command

how to remove time stamp using bash command format:20090130_1424

format:yyyymmdd_24hr time format
vijay11Asked:
Who is Participating?
 
omarfaridCommented:
change to that folder / dir then run

ls *.txt > files
0
 
omarfaridCommented:
please elaborate on the requirement and give example
0
 
vijay11Author Commented:
i have 80 .txt files in a windows folder.how can we load the name of all txt files in to a text file.examples
if name of files are a.txt,b.txt ..... .i want to load all the names of files in a text file.i have cygwin installed
0
 
chiragypatilCommented:
Say you have all txt files in directory dir1
run the following command in that directory

ls | grep "*.txt" > list_of_filenames.txt

Open in new window

0
 
TintinCommented:
Your description is completely different from your original question.  What's the relationship of the timestamp?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.