(That is a huge document and has a steep learning curve, better try to find some book about shell usage). That is the program that first interpretes that line. That is the program running when you type this command line. My advice is that you realy should read some documentation about bash. So why do you have in your command line? (And I can assure you that you need it!) Thus, I assume, you are realy lost here.Ībout that -exec (it is under the Actions section there)? Hm, there are no real regular expressions in that whole command line. Meanwhile I am now trying to master rsync. In fact I am hopeless with regular expressions so if you have time to suggest where I should do more study please do. If you can help further it would be much appreciated.Īs you have guessed I did not find this in a man page. I have moved to the actual directory at /data/multimedia and run the script again but alas, no output. I believe it is because I am working in a directory that is created by a soft link but cannot find way around this. So now multimedia directory is seen in my home tree.įrom a cli (bash - Konsole) I have been running my find scripts and yes of course it works, I just have not given the right instructions, including putting -type in the right place!!! Unfortunately I stll have not got the result I want with even your line of code giving no output. I have created a soft link to my home directory tree by running:- ln -s /data/multimedia multimedia The new drive is mounted at /data and formatted with ext4. OK I am using openSUSE 13.2 x86-64 with KDE 4.14.4 desktop. maxdepth 1 -type f -name show you if, and when yes, how many, of files are to be going deleted. In any case, when you want to check (without destryoing anything) what files are found by find, just let find print that list before you add any -delete (or other destructive actions). While in this case we might have an idea about what you thought that would happen and you apperently mean that something else happened, that is not enough to tell exactly what happens and/or what not. find does what you ask it to do, thus it works. As you do not show what your working directory is, we can not comment on the correctness of this. , which means the current working directory. The first arghument is the starting point, You use. It may not be very important here, but you should always tell which version of openSUSE you use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |