Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

atwritedate(3) [debian man page]

atprint(3)						       AtFS Toolkit Library							atprint(3)

NAME
atWriteStatus, atWriteMode, atWriteDate, atWriteName, atScanStatus - print and scan special attribute values SYNOPSIS
#include <atfs.h> #include <atfstk.h> char*atWriteStatus (Af_key *aso; int verbose); char*atWriteMode (Af_key *aso); char*atWriteDate (Af_key *aso, char *dateAttribute); char*atWriteName (Af_key *aso, char *path); int atScanStatus (char *statusStr); DESCRIPTION
atWriteStatus returns a string representation of Asos AF_STATE attribute. With the verbose argument TRUE, atWriteStatus returns a long (8 character) status name. Otherwise, on FALSE, it returns a one character short representation. The result value is a statically defined string in any case. atWriteMode generates a ls -l(1) like (e.g. -rwxr-xr-x) string representation of the AF_MODE attribute. It returns its result in static memory, which will be overwritten on subsequent calls. atWriteDate produces a date string from the given dateAttribute to be used for ls -l(1) like output (e.g. Jan 8 11:07 or Jul 10 1992). The format of the date string depends on the value of the date attribute. The string is always 12 characters long and begins with the month and day. For dates younger than 6 months, the third field is the time, for dates older than 6 months, the year. The result string resides in static memory, which will be overwritten on subsequent calls. atWriteName generates a bound pathname from path and aso. atScanStatus converts an status string to an internal numeric status value. It understands various abbreviations, including the one charac- ter status strings generated by atWriteStatus. .BUGS The format switch in afWriteDate (for dates older than six months) does not happen at exactly the right time. It may be a few days later. AtFStk-1.12 Fri Jun 25 16:39:43 1993 atprint(3)

Check Out this Related Man Page

atnetwork(3)						       AtFS Toolkit Library						      atnetwork(3)

NAME
atNetworkPath, atLocalPath - network path handling SYNOPSIS
#include <atfs.h> #include <atfstk.h> char* atNetworkPath (Af_key *aso); char* atLocalPath (char *networkPath); DESCRIPTION
atNetworkPath returns a network wide unique pathname for aso. The pathname has the following structure <hostname>:<canonical_pathname>@<version>. Hostname is the name of the host controlling the device, where aso is stored. the canonical pathname is the real pathname (without symbolic links), where the object is located on that host. The version number, including the introducing at-sign (@) is optional. For busy ver- sions, it may be missing or the string busy atLocalPath maps a network path name to a local path name. When the host information in the network path denotes a remote host, atLocalPath looks up /etc/mtab for a mapping of the network canonical pathname to a local path. The resulting pathname is a local pathname in bound notation <pathname>[version] with the version number added in brackets. It may be converted into an ASO descriptor by calling atBindVersion (manual page atbind(3)). RETURN VALUE
Both functions return the resulting string in static memory. The result will be overwritten on a subsequent call. On failure, a null pointer is returned. SEE ALSO
atbind(3) FILES
/etc/mtab AtFStk-1.12 Fri Jun 25 16:39:40 1993 atnetwork(3)
Man Page

12 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Listing files older than 2 months

A script or command to list files older than 2 months in a specified directory and remove it. (3 Replies)
Discussion started by: pbekal
3 Replies

2. Shell Programming and Scripting

Finding out the last modified time for files

I need to find out the last modified time for the files which are older than 6 months. If I use ls -l, the files which are older than 6 months, I am just getting the day, month and year instead of exact time. I am using Korn shell, and SUN OS. Thanks in Advance, Kiran (3 Replies)
Discussion started by: kumariak
3 Replies

3. UNIX for Dummies Questions & Answers

deleting files with dates 3 months ago

please help me with this????? :confused: :confused: i need to create a program that will run in unix that will delete all files in a given directory that is at least 3 months old. first the program will need to automatically know what date it is right now to determine the files it will... (3 Replies)
Discussion started by: godalle
3 Replies

4. Shell Programming and Scripting

Difference between two dates...

Hi All, Wish you a Happy New year... I have to find the difference between two dates, the result should be the number of days. I have seen the "datecalc" function. Its good, can I have any other alternative. Thanks in Advance Raju (4 Replies)
Discussion started by: rajus19
4 Replies

5. Shell Programming and Scripting

Replace words with the first characters

Hello folks, I have a simple request but I can't find a simple solution. Hare is my problem. I have some dates, I need to replace months with only the first 3 characters (jan for january, feb for february, ... all in lower case) ~$ echo '3 october 2010' | sed 3 oct 2010I thought of something... (8 Replies)
Discussion started by: tukuyomi
8 Replies

6. Shell Programming and Scripting

Help with Variable

If I am naming all my files with current date, so how do I get fine names older than 2 months. For example file name are MYDATE=`date +"%Y_%m_%d"` Myfile=D$MYDATE_file.txt So I will be creating files on a daily basis. So if I have to delete files older than 60 days. How do I do it using... (7 Replies)
Discussion started by: Hangman2
7 Replies

7. UNIX for Dummies Questions & Answers

about dates, comparing and calculation

Hi, can we do date comparisons in unix? like if i give the two dates find which date is old one and which is new one and difference between the two dates in terms of hours,minutes,days and months. (1 Reply)
Discussion started by: vmachava
1 Replies

8. UNIX for Dummies Questions & Answers

Help with Date in UNIX

Hi I have a requirement where i will need the dates to be set in such a way that the start date should be 5 months before and end date should be 3 months before the current date. Also the start and end dates we set should be the 1st day of the month. Example: Date ... (8 Replies)
Discussion started by: akshay01987
8 Replies

9. UNIX and Linux Applications

Firefox 10 keeps losing history older than 2 months

Can anyone explain why Firefox 10 keeps losing history older than 2 months? (1 Reply)
Discussion started by: cokedude
1 Replies

10. Shell Programming and Scripting

Shell script

hi, I need a shell script which gives list of files as below 1. mtime is between 6 months and 12 months 2. mtime is between 12 months and 24 months 3. mtime is above 24 months with only the below fields -- field 1---------field 2--------------field 3--- -- size in bytes--last modified... (3 Replies)
Discussion started by: vjpkr635
3 Replies

11. UNIX for Dummies Questions & Answers

Months difference between 2 dates

Hello, I would like to find out the number of months between two dates as below example. date 1 = 03-02-2016 date 2 = 15-11-2015 I need 04 as months difference. Any help on this is highly appreciated. Thanks, Keerti (3 Replies)
Discussion started by: keertis
3 Replies

12. Shell Programming and Scripting

Insert values into a file 0 as per the date wise

Hi The file contains 12 months of date and less than 12 months of data I want to display if date filed less than 12 months of data I want to insert a value amount 1 to amount4 0 and dates as well. 12345|Date|cntry|amount1|amount2|amount3|amoun4... (2 Replies)
Discussion started by: jagu
2 Replies