![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Differentiate Soft and Hard Link | balu_solaris | UNIX for Dummies Questions & Answers | 4 | 01-23-2009 05:18 PM |
| hard/soft link question | Browser_ice | UNIX for Dummies Questions & Answers | 1 | 08-19-2006 03:13 AM |
| links.... soft or hard.. not sure? | yls177 | UNIX for Dummies Questions & Answers | 5 | 10-25-2002 04:12 AM |
| links: (soft, hard? symbolic??) inode | gusla | UNIX for Dummies Questions & Answers | 5 | 05-09-2002 09:58 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I am digging for certain types of files in the current directory and all its sub-directories and archiving them with the following code:
#! /usr/bin/ksh Archive=`date +%Y_%m_%d_%T` find . -type f \( -name \*\.ksh -o -name \*\.sql -o -name \*\.ini \) -print|xargs tar -cf configksh_$Archive.tar rm -rf $Archive The problem with this piece of code I have is that-- I can't locate the links (symbolic / hard / soft.. I'm not sure of the difference either) of the resultant files. Can somebody throw light on how I can "find" all the links recursively within the current directory along with the files that are of the desired extensions as shown. (Links , obviously, needn't have these extensions). Correct me if I'm wrong in saying: find . \( -type f -o -type l \) \( -name \*\.ksh -o -name \*\.sql -o -name \*\.ini \) -print|xargs tar.... to do what I want. Thanx to all who save me quickly, Sirisha Last edited by manthasirisha; 03-13-2006 at 10:39 AM.. Reason: Addition of a small comment |
|
||||
|
C'mon ppl.. it's about 20 hrs and not a single reply?!
I'm really desperate to get this right as early as possible.. I understood from a lot of posts here that there is no direct way to find hard links...except with the help of inode number. For soft links the "l" predicate in the list of file permissions when issued a "ls -l".. may help.. but i just want to confirm if i'm thinking in the right direction. Can files of the required extensions be identified along with their links(hard or soft) using find command? If so, please enlighten me how. Thanks a ton in advance, Sirisha Last edited by manthasirisha; 03-14-2006 at 09:25 AM.. |
|
||||
|
Blowtorch,
I never did say anything like that.. nor even did I mean when was asking help for a second time. It was a very informal and casual expression I thought, could use to request our expert friends from such a hyooooooge group. It wasn't meant to obligate anyone here to respond to it all.. it's a just a plain and urgent request! Sorry, if you felt it personal. Thanks a ton for your advice on that! But that's not all that I'm looking for. I need a short method by which I can extract the files I need and follow up both their hard and soft links. Hope I made myself thorougly clear! Sirisha |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|