08-30-2013
Add file creation date as new column
Hi ,
I have a requirement to append file creation date to each row in a file for all the files in a directory.
Please help
Thanks,
Pavan
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I have some files which are creates every day using a script. I want to create a log files which does write "filename,creation day and time"
how can I do this ??
Alice (3 Replies)
Discussion started by: alisevA3
3 Replies
2. UNIX for Dummies Questions & Answers
Hi!!
I wanna display file names which are created before/after a particular date.
I wud be glad if anybody can help me out in that.
Thanx
Dhruv (1 Reply)
Discussion started by: dhruv_saksena
1 Replies
3. UNIX for Dummies Questions & Answers
Dear Expert,
Is there a command to do that in Unix?
In such a way that we don't need to actually "write" or
modified the content.
-- monkfan (4 Replies)
Discussion started by: monkfan
4 Replies
4. Shell Programming and Scripting
Hi All,
I need to get file creation date.
I have to access one file who's name is like...
abc.log092308
and the date changes as per current date. And i am accessing this file next day. meance in above case i will access above file on 09-24-2008
Also one problem is that this file... (2 Replies)
Discussion started by: Jeevan Salunke
2 Replies
5. Shell Programming and Scripting
Hi,
I just need to know way of getting date of file when it was created.
eg i have a file abc created on 23 aug. Now i need to know date of file i.e. 23 aug. How can i get that data.
Thanks
Sarbjit (7 Replies)
Discussion started by: sarbjit
7 Replies
6. Shell Programming and Scripting
Hi,
Can anyone tell me a process to find the creation date of a file in a directory.
If suppose I have a file in a directory created in 2009
-rw-r--r-- 1 xyz guest 2480 Jul 16 2009 sample.txt
The command should return the the file creation date as 16/07/2009
thanks, (2 Replies)
Discussion started by: swathich
2 Replies
7. Emergency UNIX and Linux Support
Hi Experts,
I am trying to add one variable value as the first value in a file speparated by "" (space) delimiter. Can you please let me know how I can do this using bash script.
Following is my file.
1635 ABCD 3m9ka COMPLETE
0526 AJAY 3m1da COMPLETE
0419 INDIA 3m3zi INCOMPLETE
The... (3 Replies)
Discussion started by: ajaypatil_am
3 Replies
8. Shell Programming and Scripting
Hi
I have file with number status and date1 and date1 field,
want add a column today between column date1 and date2.
file1.txt
number status date1 date2
===== ==== === =====
34567 open 27/06/13 28/06/13
45678 open 27/06/13 28/06/13
43567 open 27/06/13 28/06/13 ... (1 Reply)
Discussion started by: vijay_rajni
1 Replies
9. UNIX for Dummies Questions & Answers
Dear Masters,
I am using solaris 10. There is a requirement if a file created on Feb 1 or Feb 2, the creation date will be changed to Jan 31. Is there any command on Solaris to do that?
Thanks,
Kris (1 Reply)
Discussion started by: kris.adrianto
1 Replies
10. Shell Programming and Scripting
Hi Team,
How to get the file creation date and time in SFTP server
we can able to type ls -ltr command only SFTP server.
Generally we type ls --full-time test.txt we will get the date and time , same way how to do in SFTP server after connected.
Thanks (1 Reply)
Discussion started by: bmk123
1 Replies
hpls(1) General Commands Manual hpls(1)
NAME
hpls -- list the contents of a directory on an HFS+ volume
SYNOPSIS
hpls [options] [hfs-path ...]
Description
hpls is used to list files and directories on an HFS+ volume. If one or more arguments are given, each file or directory is shown; other-
wise, the contents of the current working directory are displayed.
Options
-1 Each entry appears on a line by itself. This is the default if standard output is not a terminal.
-a All entries are shown, including "invisible" files. The default is to omit invisible files.
-c Sort and display entries by their creation date, rather than their modification date.
-d List directory entries themselves rather than their contents. Normally the contents are shown for named directories on the com-
mand-line.
-i Show the catalogue ID for each entry. Every file and directory on an HFS+ volume has a unique catalogue ID.
-l Display entries in long format. This format shows the entry type ("d" for directory, "f" for file, "F" for locked file), flags
("i" for invisible), type and creator (four-character strings) for files only, size (number of items in a directory or resource
and data bytes of a file, respectively), date of last modification (or creation if the -c flag is given), and name.
-m Display entries in a continuous format separated by commas.
-q Replace special and non-printable characters in displayed filenames with question marks (?). This is the default when standard
output is a terminal.
-r Sort entries in reverse order before displaying.
-s Show the file size for each entry in 1K block units. The size includes blocks used for both data and resource forks.
-t Sort and display entries by time. Normally files will be sorted by name. This option uses the last modification date to sort
unless -c is also specified.
-x Display entries in column format like -C, but sorted horizontally into rows rather than columns.
-w width Format output lines suitable for display in the given width. Normally the width will be determined from your terminal, from the
environment variable COLUMNS, or from a default value of 80.
-C Display entries in column format with entries sorted vertically. This is the default output format when standard output is a
terminal.
-F Cause certain output filenames to be followed by a single-character flag indicating the nature of the entry; directories are fol-
lowed by a slash "/" and executable Macintosh applications are followed by an asterisk "*".
-N Cause all filenames to be output verbatim without question-mark substitution.
-R For each directory that is encountered in a listing, recursively descend into and display its contents.
See also
hfsplus(7), hpmount(1), hpcd(1), hppwd(1), hprm(1), hpmkdir(1), hpcopy(1), hpumount(1), hpfsck(1).
Author
This manual page was written by Jens Schmalzing <jensen@debian.org> for Debian GNU/Linux using the manual page by Klaus Halfmann <half-
mann@libra.de> that comes with the source code and documentation from the Tech Info Library.
hpls(1)