Sponsored Content
Top Forums UNIX for Dummies Questions & Answers retrieve timestamp associated with a file Post 25963 by Perderabo on Thursday 8th of August 2002 08:23:23 AM
Old 08-08-2002
"ls -l" is pretty much it. I assume that you know that "ls -l" can indeed take arguments? So:
ls -l filename
would seem to do what you want. If this is not the case, please tell us why.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Retrieve data from a file

Hello guys I want to retrieve two data from a file, like this: bash-2.03$ cat numtest 123456 123457 bash-2.03$ more ./test_num #!/bin/bash num1= num2= cnt=1 while read x do num${cnt}=$x cnt=$(($cnt+1)) done <$1 echo $num1 "\n" $num2 But when i executed this script, error... (2 Replies)
Discussion started by: tpltp
2 Replies

2. Shell Programming and Scripting

retrieve value from a file

hi i have a cfg file,it contains lpdma520.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FT lpdma521.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FTREQ lpdma522.dev.ipc.us.aexp.com=SUBMITSECUREFILEFLOW i am retrieving the values using the function RetrieveCfgvalue() { CFG_VALUE=`grep "$2="... (1 Reply)
Discussion started by: satish@123
1 Replies

3. Shell Programming and Scripting

how to retrieve base name of the file

I have a file name stored in a variable. A=/bb/data/f233pdb How can I retrive the base name (f233pdb) and the path (/bb/data/) and assign them to two new variables, so the result will look like this B=f233pdb C=/bb/data/ Thansk a lot for any help -A (8 Replies)
Discussion started by: aoussenko
8 Replies

4. UNIX for Advanced & Expert Users

retrieve the file.

How will retrieve for a particular months file in UNIX say for example from January to February 2008. (1 Reply)
Discussion started by: rajesh08
1 Replies

5. Shell Programming and Scripting

retrieve string from file

hi, I have write a code to retrive data from each line of a file: sed -e '/^#/d' file.csv | awk '{ printf "TEST,%s:AUX,%s;\n", $0, "'A'"}' > pippo.txt where the input file.csv was like this: 1234 2345 2334 3344 and the output of my code is a file with: TEST,1234:AUX,A;... (7 Replies)
Discussion started by: fafo77
7 Replies

6. Shell Programming and Scripting

How to retrieve the current timestamp?

I am doing this in my script .. currenttimestamp=`db2 "select current timestamp from SYSIBM.SYSDUMMY1 with ur"` echo s $currenttimestamp but this is how its shows s 1 -------------------------- 2011-04-18-12.43.25.345071 1 record(s) selected. How can I just get the timestamp... (6 Replies)
Discussion started by: mitr
6 Replies

7. Shell Programming and Scripting

Getting a relative timestamp from timestamp stored in a file

Hi, I've a file in the following format 1999-APR-8 17:31:06 1500 3 45 1999-APR-8 17:31:15 1500 3 45 1999-APR-8 17:31:25 1500 3 45 1999-APR-8 17:31:30 1500 3 45 1999-APR-8 17:31:55 1500 3 45 1999-APR-8 17:32:06 1500 3 ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies

8. UNIX for Dummies Questions & Answers

How to compare a file by its timestamp and store in a different location whenever timestamp changes?

Hi All, I am new to unix programming. I am trying for a requirement and the requirement goes like this..... I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies

9. UNIX for Dummies Questions & Answers

Hot to retrieve *.sql file names which we refer in .sh file.

Hi Guys, How to retrieve/get *.sql file names which we refer in all *.sh files. Can any one help me on this. Thanks, Kolipaka (3 Replies)
Discussion started by: lakshmanrk811
3 Replies

10. UNIX for Beginners Questions & Answers

Grep: Retrieve two strings from one file to find them anyone on line in another file

I am having trouble matching *two* strings from one file anywhere in a line of a second file, and could use some help getting this figured out. My preference would be to use grep for this because I would like to take advantage of its -A option. The latter is due to the fact that I would like both... (2 Replies)
Discussion started by: jvoot
2 Replies
Pod::WSDL::Writer(3pm)					User Contributed Perl Documentation				    Pod::WSDL::Writer(3pm)

NAME
Pod::WSDL::Writer - Writes XML output for Pod::WSDL (internal use only) SYNOPSIS
use Pod::WSDL::Writer; my $wr = new Pod::WSDL::Writer(pretty => 1, withDocumentation => 1); DESCRIPTION
This module is used internally by Pod::WSDL. By using AUTOLOADing it delegates all unknown methods to XML::Writer. It is unlikely that you have to interact directly with it. If that is the case, take a look at the code, it is rather simple. METHODS
new Instantiates a new Pod::WSDL::Writer. The method can take two parameters "pretty" with a true value triggers pretty printing of the WSDL output. "withDocumentation" with a true value produces a WSDL docuemnt containing documentation for types and methods. wrNewLine Has XML::Writer write a newline wrElem Has XML::Writer write an Element. The first argument is one of (empty|start|end), to write an empty element, a start or an end tag. The second argument signifies the name of the tag. All further arguments are attributes of the tag (does not work, when first argument is 'end') wrDoc Writes the string passed to the method as a <wsdl:documentation> Element registerWrittenFaultMessage There needs to be only one fault message per fault type. Here the client class can register fault types already written. The fault name is passed as the single argument to this method. faultMessageWritten Counterpart to registerWrittenFaultMessage. The client can ask if a fault message has already written. The fault name is passed as the single argument to this method. output Returns XML output. EXTERNAL DEPENDENCIES
XML::Writer EXAMPLES
see Pod::WSDL BUGS
see Pod::WSDL TODO
see Pod::WSDL SEE ALSO
Pod::WSDL AUTHOR
Tarek Ahmed, <bloerch -the character every email address contains- oelbsk.org> COPYRIGHT AND LICENSE
Copyright (C) 2006 by Tarek Ahmed This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available. perl v5.10.1 2010-12-18 Pod::WSDL::Writer(3pm)
All times are GMT -4. The time now is 04:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy