0
votes
3answers
398 views

How to separately count number of files, directories, symbolic links and hard links within a single find run?

To check a successfull migration I'm using find to count the number of files, directories, symbolic links and files with more than one hard link. As the directories to check contain a huge number of ...
5
votes
1answer
423 views

Convert symlinks to hard links

I'd like to recursively convert soft links to hard links in a directory. I've tried something like this: for f in *; do (mv $f{,~} && ln $(readlink $f~) && rm $f~) done …but it ...
0
votes
1answer
1k views

Unix pipe: find | ln -s

I'm trying to symlink some php files using the following command: find `pwd` -name "*.php" | ln -s * /home/frankv/www/bietroboter.de/symlinks However, all the symlinks are broken because the little ...
1
vote
1answer
154 views

Find symbolic links

I'm awared that find -L or find -type l would find all symbolic links on a given path. But I'm trying to find all symbolic links that points to my foo folder. Any tips?
2
votes
1answer
112 views

Find symlink when 'find' hasn't worked

So I have a few utility scripts in my ~/scripts folder. They are all bash scripts, nothing amazing about that. One is named sfind.sh, the other is svn-add-all.sh. At some point, I created symlinks to ...
0
votes
1answer
2k views

mac os x, find all symbolic links that point to files on a different volume

In my ~ dir, I have some symlinks that point to "/Volumes/Macintosh HD 2/..." and I want to find them all recursively. A look at the man page for 'find' says the '-lname' argument will search the ...
2
votes
1answer
701 views

Symbolic link modification for HP unix

I'm trying to modify the following in order to rename some symbolic links: find /home/user/public_html/qa/ -type l \ -lname '/home/user/public_html/dev/*' -printf \ 'ln -nsf $(readlink %p|sed ...