I expect to find the names of the files including their folders which contain "domain", "subdomain/sub domain", "free domain". etc.
This should work,
Code:
find . -path "*domain*" 2> /dev/null
Will find files that do have 'domain' in the filename, and will find files that don't have 'domain' in the filename, but exist in a directory with 'domain' in the dirname.
You shouldn't need to search for "subdomain/sub domain", "free domain". etc. because the original search for 'domain' will find them all.
Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same.
Thanks in advance.
Regards
Jatin Jain (10 Replies)
Hi,
I need a command to find a files under particular owner ?All the files in the system for the particular user id is the owner?
Please help me on this? (2 Replies)
I want to find the files and delete all the files except the last file.
I am using find command , I am sending the find output to a file and getting all the lines except the last one and sending it to the remove command . This is not working. can anyone help me out to do it in the find command... (8 Replies)
I noticed the other day that after i used the find command to search for some files, the computer listed them twice -- first with just the names of the files (meaning ./(then the individual file names), then with the directory name, followed by the file names (./directory name/file name). I was... (2 Replies)
Hi All,
Can anyone give me the command to copy files from 03-Mar-2013 to 07-Mar-2013 in folder.
there are nearly 40+ thousand files in directory , so I just need files from Mar 3rd to Mar 7th and copy them to a location .
Need quick help pls (2 Replies)
Hi,
I want to delete all the log files that was created on year 2008. My command is not working. Any idea?
find . -name '*.log' -mtime 1460 -exec ls -lt {} \;
Thank you. (2 Replies)
Hi All,
I've created 2 files
touch -t 201309101234 aa10
touch -t 201309111234 aa11
Exact 60 days before from today date is SEPT 12th . As per the following command as i gave +60 means the files which were created before sept12th should be deleted
find /etc/logs/*aa* -type f -atime +60... (5 Replies)
I need to find a word '% Retail by State' in the folder /usr/sas/reports/RetailSalesTaxallocation.
When I tried like below,
-bash-4.1$ cd /usr/sas/reports/RetailSalesTaxallocation
-bash-4.1$ find ./ -name % Retail by State
find: paths must precede expression: Retail
Usage: find ... (10 Replies)
I want to run find and wondering if it struggles when there are many files. I have tried
and does not seem to complain.
Is this correct? (8 Replies)
Discussion started by: kristinu
8 Replies
LEARN ABOUT SUSE
defaultdomain
DEFAULTDOMAIN(5) Linux Programmer's Manual DEFAULTDOMAIN(5)NAME
defaultdomain - file which contains the NIS/YP domain name
DESCRIPTION
/etc/defaultdomain is used by the boot scripts to set the NIS/YP domain name for a system as returned by the getdomainname(2) function. The
file contains one line with the name of the domain.
Unlike DNS hostnames and domain names, the NIS domain name is case-sensitive! The NIS domain name must not be the same as the DNS domain
name, but for some services like NIS+ it should be the same.
Even if the domain name is often called NIS/YP domain name, it is also used from other protocols, not only NIS/YP.
FILES
/etc/defaultdomain /etc/init.d/boot.localnet
SEE ALSO domainname(1), init.d(7), init(8), nisdomainname(1), ypdomainname(1), ypbind(8), ypserv(8), ypwhich(1)COPYRIGHT
2002 SuSE Linux AG Nuernberg, Germany.
SuSE Linux 2002-01-16 DEFAULTDOMAIN(5)