niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » shell
link to part of a file
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Keith Thompson
*nix forums Guru


Joined: 28 Feb 2005
Posts: 5173

PostPosted: Wed Jul 19, 2006 10:23 pm    Post subject: Re: link to part of a file Reply with quote

Weiguang Shi <wgshi@nestow.cs.ualberta.ca> writes:
Quote:
This may not be the right place but you are knowledgeable people...
Can I create a link that contains only part of a file?

A link doesn't "contain" a file; it refers to a file. There's no way
for a either a hard link or a soft (symbolic) link to refer to only
part of a file.

A symlink is implemented as a small file containing the name of the
target file, with a flag set (in the inode, I think) so the OS knows
it's a symlink and treats it, in most circumstances, as the file it
refers to.

You can certainly create your own type of file that contains, say, a
file name, starting offset, and size. Your own software can treat
these files as if they were symlinks to parts of files. This won't
affect anything that doesn't recognize this special kind of file.
This may or may not be sufficient for your purposes.

--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Back to top
Michael Vilain
*nix forums Guru


Joined: 21 Feb 2005
Posts: 565

PostPosted: Wed Jul 19, 2006 12:36 am    Post subject: Re: link to part of a file Reply with quote

In article <slrnebqp47.rgg.wgshi@nestow.cs.ualberta.ca>,
Weiguang Shi <wgshi@nestow.cs.ualberta.ca> wrote:

Quote:
Hi,

This may not be the right place but you are knowledgeable people...
Can I create a link that contains only part of a file?

Thanks.
Wei

If you mean a hard or soft link, the answer is no. Google "hard link"
and "soft link" for more info.

--
DeeDee, don't press that button! DeeDee! NO! Dee...
Back to top
Weiguang Shi
*nix forums beginner


Joined: 25 Mar 2006
Posts: 16

PostPosted: Tue Jul 18, 2006 10:45 pm    Post subject: link to part of a file Reply with quote

Hi,

This may not be the right place but you are knowledgeable people...
Can I create a link that contains only part of a file?

Thanks.
Wei
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Nov 21, 2008 5:54 pm | All times are GMT
navigation Forum index » Programming » shell
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Running php file everyday on scheduled time sachin PHP 1 Fri Jul 21, 2006 12:49 pm
No new posts Regarding thesaurus iso file Srikanth modules 0 Fri Jul 21, 2006 10:42 am
No new posts how can i get a file descriptor not used? mars system 0 Fri Jul 21, 2006 7:41 am
No new posts small GTK "Open file" dialog David Siroky Debian 0 Fri Jul 21, 2006 7:30 am
No new posts Trouble Declaring 3D Array in Header File free2klim C++ 1 Fri Jul 21, 2006 4:07 am

Loan | Mortgage Calculator | Mortgage Calculator | Home Loan | Singapore Shopping Guide
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2864s ][ Queries: 20 (0.2098s) ][ GZIP on - Debug on ]