Link to home
Start Free TrialLog in
Avatar of vijay11
vijay11

asked on

how to remove time stamp using bash command

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

format:yyyymmdd_24hr time format
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

please elaborate on the requirement and give example
Avatar of vijay11
vijay11

ASKER

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
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

ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Your description is completely different from your original question.  What's the relationship of the timestamp?