find command

  1. B

    Solved Find and copy files script doesn't work

    Hi. I have the following script which searches for a list of files (included in a list.txt file) and then copies them into a new directory. The source files are all under the same folder, but they are scattered among several subfolders. #!/bin/bash SOURCE="/opt/source_folder/"...
  2. K

    bash script, find amount of strings in files

    Hello everyone! I am writing script which must count amount of strings in files .z format. Name of folder can changes in dependence of current date, if it's 1-st date of the month script count amount in folder which is called 2210 (previous month ) if today is not 1-st day of month then folder...
  3. C

    Can anyone explain this odd behavior from the "find" command?

    EDIT: Wasn't a "find" error but mistaken about permission numbers. So I've been testing more complicated results of the find command with finding files with certain permissions. With the first attempt, I use an or operator to display files with 0611 and 0700, because there are only a few of...
  4. A

    Using "find" to search an entire system

    qw@qw-desktop:~$ sudo find . -name "mdi.pro" ./Downloads/qt-everywhere-src-6.2.1/qtbase/examples/widgets/mainwindows/mdi/mdi.pro ./Qt/Examples/Qt-6.2.2/widgets/mainwindows/mdi/mdi.pro qw@qw-desktop:~$ REALLY STUPID question: The above searches ONLY current folder . I need to search entire...
  5. D

    Running the Find command in the background

    Hello, I am going through a Linux course and was asked to run the find command in the background and it should list all files that have changed in the last 5 days. I am running the following command, but it ignores the & to background it - find / -mtime -5 & I am also trying to suspend the...
Top