?
Solved

how to remove time stamp using bash command

Posted on 2009-04-06
5
Medium Priority
?
348 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 24083915
please elaborate on the requirement and give example
0
 

Author Comment

by:vijay11
ID: 24084024
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
ID: 24084079
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 1500 total points
ID: 24084144
change to that folder / dir then run

ls *.txt > files
0
 
LVL 48

Expert Comment

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

Featured Post

Basic Security of Your VPC

So, you’ve got this shiny new VPC and a fancy new application configured on your EC2 servers ready to go. This application is only accessible from your computer, which is great for security, but you need your users to be able to access it! So, what’s the easiest way to do this?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Suggested Courses

777 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