Solved

how to remove time stamp using bash command

Posted on 2009-04-06
5
339 Views
Last Modified: 2013-12-26
how to remove time stamp using bash command format:20090130_1424

format:yyyymmdd_24hr time format
0
Comment
Question by:vijay11
5 Comments
 
LVL 40

Expert Comment

by:omarfarid
Comment Utility
please elaborate on the requirement and give example
0
 

Author Comment

by:vijay11
Comment Utility
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
 

Expert Comment

by:chiragypatil
Comment Utility
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
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
Comment Utility
change to that folder / dir then run

ls *.txt > files
0
 
LVL 48

Expert Comment

by:Tintin
Comment Utility
Your description is completely different from your original question.  What's the relationship of the timestamp?
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
The viewer will learn how to count occurrences of each item in an array.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now