LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2011, 01:59 AM   #1
Hossana
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
help me list only linked files in my linux box using a shell script


Anyone please help me to get all linked (symbolic soft links files ) to be listed in a flat file using shell scripting

Thanks,
Hosana
 
Old 09-06-2011, 02:00 AM   #2
Hossana
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
I want the linked files starting with lr... to be listed in a new file
 
Old 09-06-2011, 02:20 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Why do you need this? Is this homework?
jdk
 
Old 09-06-2011, 02:27 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
What have you tried? Have you read the man page for find?
 
Old 09-06-2011, 02:32 AM   #5
Hossana
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
not home work, we are jus trying to check wheather weekly backup taken from source directory restores the link files exactly so we have to create aflat file.. we aere able to take the directory check in shell script using dr -d but i dont know for linked file .. instead we can give command line like " ls -lrt | grep ^ l
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need advice on a script to search many files for list of terms, append hits to list jimmy the saint Programming 1 07-11-2010 03:59 AM
Shell script to build a list of karaoke music files sorted by artist and title! imix40 Linux - Newbie 4 08-13-2008 07:10 PM
Getting list of hard-linked files SlowCoder Linux - General 1 01-28-2008 11:51 AM
How Do I List All Files Linked To inode? freedomics Linux - Software 1 04-24-2007 06:18 PM
imple,menting a linked list in c program in linux bprasanth_20 Programming 17 10-25-2003 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration