Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

afile(1) [redhat man page]

AFILE(1)						      General Commands Manual							  AFILE(1)

NAME
afile - display type and creator of Apple Macintosh files (netatalk format) SYNOPSIS
afile [ -a ] file ... DESCRIPTION
afile displays the name and Macintosh type and creator of the file arguments. Tests whether the file is an AppleDouble header, in which case it checks the corresponding data fork exists, or assumes it is a data fork in which case it looks for the corresponding AppleDouble to find the type/creator information. afile does not look at any of the extension mapping files such as AppleVolumes.system. OPTIONS
-a Include directories and data files of unknown type (i.e. without corresponding AppleDouble) in output. DIAGNOSTICS
returns exit status 0 if all files have a corresponding valid .AppleDouble header or data fork, or 99 for bad command line options. Other- wise it returns the following error code relating to the last invalid file. 1 file doesn't exist 2 file is unreadable 3 file is directory 4 file is AppleDouble without data fork 5 file is AppleDouble with unreadable data fork 6 file is data fork without AppleDouble 7 file is data fork with unreadable AppleDouble 8 file is data fork with short AppleDouble 9 bad magic in AppleDouble SEE ALSO
achfile(1), afpd(1) 26 Feb 1998 AFILE(1)

Check Out this Related Man Page

FIXUPRESOURCEFORKS(1)					    BSD General Commands Manual 				     FIXUPRESOURCEFORKS(1)

NAME
/System/Library/CoreServices/FixupResourceForks -- Join AppleDouble files into two-fork HFS resource files. SYNOPSIS
/System/Library/CoreServices/FixupResourceForks [-q[uiet]] [-nosetinfo] [-nodelete] path ... DESCRIPTION
FixupResourceForks is to SplitForks what matter is to antimatter. Given one or more directories that reside on an HFS or Extended HFS ("HFS+") volume, it scans those directories for AppleDouble files and, if found, rejoins them into two-fork resource files. The resource fork data can then be accessed with normal Carbon Resource Manager calls, be processed with DeRez(1), and accessed from the POSIX file system interface through the ..namedfork/rsrc path mechanism. /System/Library/CoreServices/FixupResourceForks takes the following flags and arguments: -q[uiet] Suppress verbose diagnostics to standard output. -nosetinfo Do not set file system metadata (type, creator, flags, permissions) from the data in the AppleDouble file. -nodelete Leave the AppleDouble files in the directory after copying their resource data into the resource fork of the main file. path ... One or more directory paths. Note that FixupResourceForks only acts on entire directories, not in individual files. FILES
foo Data fork of file 'foo' NOTES
SplitForks will fail with error 2 if the designated file is not on an HFS or Extended HFS file system volume. SEE ALSO
FixupResourceForks(1), MvMac(1), CpMac(1) STANDARDS
Consult RFC 1740 for details on AppleSingle/AppleDouble formats. Mac OS X April 12, 2004 Mac OS X
Man Page

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to compare it ??

Hi how do you compare it in ksh ALINES=$(cat AFILE | wc -l) BFIRST=$(head -1 BFILE) I got ALINES=9 and BFRIST=records'9' I want 9=9 , how do you write BLINES=9 from records'9' so I can say ALINES==BLINES Thanks (4 Replies)
Discussion started by: sabercats
4 Replies

2. UNIX for Dummies Questions & Answers

help me to to insert data

hi, am new to unix can any one help me to insert data to afile to a specified column. ie to an output file with csv format i should insert some data to 2,3,4 fileds and the data in those fields should move to next fields eg: output file asd,12,12,12,12,1,2,1,1,1,1,1... (10 Replies)
Discussion started by: babu@shell
10 Replies

3. Shell Programming and Scripting

file sorting

i have a data in afile like this ************************************** sree sree@yahoo.com 98662323432 ************************************* phani phani@yahoo.com 98662323344 ************************************* i want to sort the file with respect to name. how can i do this. thank... (5 Replies)
Discussion started by: phani_sree
5 Replies

4. Programming

problems with fork() inheritating

Hi, thanks for any ideas... in main() i wrote this code: ... for(i=0;i<10;i++){ pid=fork(); switch(pid){ case -1 printf("error"); case 0:child(); default:waitpid(pid,NULL,0); } } ... void child(){ SOMETHING; } (4 Replies)
Discussion started by: michael26100
4 Replies

5. UNIX for Dummies Questions & Answers

"read previous" in afile possible ?

Hi I'm relatively new to Unix - I done basics of getting around 13 years ago in college and didn't use it since - Until now ! Basically, I have two files a and b - I want to read through file a and see where it occurs in file b. Hmmmm - I'm not explaining it very well - essentially I want... (3 Replies)
Discussion started by: rwilsonie
3 Replies

6. UNIX for Advanced & Expert Users

unreadable

Hi, can someone explain what does this mean and why does this happen? i had this problem last week, and Unix admin said that he has to rebuild the file system. Now i am getting this error again. aaaa% ls . unreadable :mad: (7 Replies)
Discussion started by: treneryy
7 Replies

7. Programming

problem implementing fork

Hi, I was honing my linux programming skill when this nuisance started bugging me. I wanted to create an empty file creator program. While creating a large file it must print # for progress bar. But the output shows it happening reverse way. ie. first it copies file and shows the progress... (7 Replies)
Discussion started by: dheerajsuthar
7 Replies

8. Programming

fork and rand()

Hi, I want build 10 processus with fork and that each processus write a value betwen 0 and 9 , but each processus send the same value . So my code ,you can compile and try . #include <time.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/ipc.h> ... (7 Replies)
Discussion started by: carton99
7 Replies

9. UNIX for Dummies Questions & Answers

Different ways in which applications are Launched.

How does X windows system launch a program? Does X give init a command (fork) or does x give BASH a command? Can/does X interact with init directly or does everything go through BASH? :wall: Thanks in advance! (4 Replies)
Discussion started by: theKbStockpiler
4 Replies

10. Programming

question about fork

i'm experimenting fork function and i found this code #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> #include <wait.h> #include <fcntl.h> #include <unistd.h> int main(void) { int fd; pid_t p; p = fork(); fork(); if (p>0) { fork();} fork(); fork();... (6 Replies)
Discussion started by: blob84
6 Replies

11. UNIX for Dummies Questions & Answers

filnding the line in afile which has less number of '|''s

Hi I have an input file with contents seperated by'|'. Each line in the file has around 192 fields seperated by '|' contents like: V|tre|Amkdr|EER|67868|3488|Re4| <Line 1> X|tre|Amkdr|EER|67868|3488|Re4| <Line 2> M|tre|Amkdr|EER|67868|3488|Re4| <Line 3> I need to findout the the... (9 Replies)
Discussion started by: rkrish
9 Replies

12. Programming

[Solved] Problem with fork() while reading files

Good evening everyone. I have my finals and I'm facing a problem: I have a for cycle that is supposed to fork 2 children but somehow it forks only the first one. What am I doing wrong ? #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h>... (5 Replies)
Discussion started by: pfpietro
5 Replies

13. UNIX and Linux Applications

Fillable PDF becomes unreadable after edited with Okular

Can anyone explain why a editable pdf becomes unreadable after edited with okular? (5 Replies)
Discussion started by: cokedude
5 Replies

14. Programming

Where to get C header files?

Some of my c code compiles fine but others can't find header files. Colored_Chars.c:4:10: fatal error: graphics.h: No such file or directory Do I need to download them from some where? I found this. Is this what I need to do? Under Using DSL libraries - How do I use graphics.h in... (3 Replies)
Discussion started by: drew77
3 Replies