I'm trying to move all files from one folder to another, except some specific folders.
I tried this to move all files except the .git, assets or build folders:
find .. !
Files and folders from another PC viewed as locked and showing "nobody/nogroup"
Works fine when creating a new folder and new file on the PC:
permission for folders: drwxrwxr-x
permission for files: -rw-rw-r--
When copying/moving a folder containing files from another PC:
permission for folders: drwxr-xr-x
permission for files: -rwxr--r--
I would like to match the permissions of all files
What is the Linux command-line command that can identify such files?
AFAIK the find command (or grep) can only match a specific string inside the text file. But I want to match whole contents, i.e. I want to see which files match regular expression \0+, ignoring the line end character(s). Maybe the find .
Hi,
I have to find specific files only in the current directory...not in the sub directories.
But when I use Find command ... it searches all the files in the current directory as well as in the subdirectories. I am using AIX-UNIX machine.Please help..
I am using the below command. And i am able to list files only in the directory but not in sub-directories.
find . ! -name .
Introduction
If you wan to find files or directories, that were last modified in the last n days or just today, it is really easy to do in Linux.
How to find files last modifies today
Use the find command to do this
find -maxdepth 1 -type f -mtime 1
maxdepth: will tell find to only search in the current folder
type: will tell find to only list files and not directories
mtime: will tell find to on
Hello Esteemed Members,
I need to write a script to search for files that have one or more than one rows similar.
Please note that there is no specific pattern that I am searching for.
I'm trying to use find with the regex option. However my regular expression only captures the basename of the file. Is there a reference to the "directory find is currently in" I can use in my regular expression so that I don't have to account for it by means of a leading .*?
I would like to recursively list all files in a directory which match a given input pattern using ls. (Oh, and this is in Bash).
The only way I can think of to do this using ls is to shopt -s extglob and then use the ls --ignore=pattern option with the extended glob negate pattern !( pattern-list ).
I'd like to find all of the files in my home folder on Linux (Ubuntu, in this case) that contain a match a particular regular expression. Is there a simple Unix command that I can use in order to do this?
For example, I'd like to find all of the files in my home folder that contain a match of the following regex (here, using Javascript-style notation): ((R|r)eading(T|t)est(D|d)ata)