|
I rectified with backquote now..
----@---.-- [~/public_html/user/unixp]# find ./b -name `ls -a` -exec rm {}\;
find: warning: Unix filenames usually don't contain slashes (though pathnames do). That means that '-name ./' will probably evaluate to false all the time on this system. You might find the '-wholename' test more useful, or perhaps '-samefile'. Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ ./'.
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
now ?
|
|
|
|
|
Erm, you changed ls a to ls -a !
|
|
|
|
|
----@---.-- [~/public_html/user/unixp]# find ./b -name `ls a` -exec rm {}\;
find: warning: Unix filenames usually don't contain slashes (though pathnames do). That means that '-name ./' will probably evaluate to false all the time on this system. You might find the '-wholename' test more useful, or perhaps '-samefile'. Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ ./'.
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
why this happening
|
|
|
|
|
nt_virus wrote: find: warning: Unix filenames usually don't contain slashes (though pathnames do). That means that '-name ./' will probably evaluate to false all the time on this system. You might find the '-wholename' test more useful, or perhaps '-samefile'. Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ ./'.
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
That's why! It has given you a complete explanation of the issue. Your ls command is still listing the directories with trailing '/' characters and the find command does not like it. I don't know which version of UNIX this is but there should be an option to suppress these characters. Take a look at the man page for ls . Also check whether you have alias ed the command to set some default options.
|
|
|
|
|
You're on the right track. You don't need the -name parameter, though you'll probably want to make sure that each thing "find" locates is a file, and not something else like a directory or symlink.
"find" can be somewhat annoying in that it will spit out the entire relative pathname for each file it finds. That is,
find ./dirA -type f
will yield
./dirA/file1<br />
./dirA/file2
To get around that, just chdir into dirA before doing the find.
$ cd dirA
$ touch file1 file2 file4 file5
$ cd ../dirB
$ touch file1 file3 file5 file6
$ cd ..
$ ls dirA
file1 file2 file4 file5
$ ls dirB
file1 file3 file5 file6
$ cd dirA
$ find . -type f -exec rm -f ../dirB/{} \;
$ cd ..
$ ls dirA
file1 file2 file4 file5
$ ls dirB
file3 file6
$
I would have answered earlier, but I only joined last week. Hope this late reply helps.
|
|
|
|
|
hello
Anyone has idea what's the difference between Norton Ghost Suite (http://www.symantec.com/business/ghost-solution-suite) and regular Norton Ghost (http://www.symantec.com/norton/ghost)
I looked at system requirement looks like "Norton Ghost Suite" supports Windows 2003 Enterprise, regular "Norton Ghost" don't.
For Windows 7 Enterprise, seems like both can do the job.
Am I right ..?
Thanks
dev
|
|
|
|
|
Symantec Ghost solution suite is the original Disk cloning program (made by Binary Research) made for cloning disks so that you can install many identical computers in a corporate environment.
Norton Ghost is the old Powerquest DriveImage which IMHO is nothing more than a backup program for home use on steroids.
Symantec = Business users.
Norton = Home users.
|
|
|
|
|
|
no need to reply if you can't add anything useful to the thread.
|
|
|
|
|
Is there any term available named "Robot" which is related with CD writing/burning Software?
Best Regards,
Saravanan T
|
|
|
|
|
The only one I can think of would be a device used to remove and insert CD's into the drive for you.
|
|
|
|
|
Hi All,
How to protect CD/DVD from copying the data file (e.g., *.PDF).
Best Regards,
Saravanan T
|
|
|
|
|
use power2go software, this will protect your CD or DVD with password and encryption.
|
|
|
|
|
Yeah, but once those are entered, there is nothing stopping the user from copying the data off the disk and burning it to another one.
|
|
|
|
|
Do not post the same question to multiple forums. This is called spamming and is cosidered very rude.
|
|
|
|
|
Hello webmaster,
please cancel my account, because i dont need this membership any longer.
I have not found a button to cancel my membership.Where is it on your website?
So you can manually cancel my account?
My Login-Name was: nicole2222
The link for unsubscribing in your mail was not working.
thanks.
nicole
|
|
|
|
|
What do you mean? do you like to unsubscribe the newsletter ?
Or you want to remove your login ?
Do you think this is the right place to talk about this ?
|
|
|
|
|
You would need to file this request in 'Suggestions and Bug Reports' forums.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Hi, As far as I know, windows grant the permission to the file on the server based on the SID of the user account.
But my laptop that join to the domain which already has the local user account and password that the same as the domain user account and password when it mapped the network drive, it could map successfully and could do anything as the permission which is grant to my domain user account.
Why this is possible while the SID of my domain user account is difference with the SID of my local user account?
Thank in advance!!!
|
|
|
|
|
Mapping drive doesn't use a SID. It uses a username and password which can be the same between two accounts in different SAMs. When you mapped the drive, you did so using the account in the domain SAM and not the local account.
Other than that, your description of the circumstances isn't entirely clear.
|
|
|
|
|
I would like to set up an environment where I have a primary domain controller and AD on a VPC, and then authenticate to that domain from my VPC host, which plays the role of a workstation.
How can I go about this? I am running SBS 2003 as the guest VPC
|
|
|
|
|
I'm not 100% sure, but I think you may need a second DC off that host. If the host goes down, it will not be able to authenticate to the DC because the DC went down with it. With a second DC off the host the host will be able to authenticate to the backup, which will be a copy of the primary DC.
edit: After looking around a bit I found this http://technet.microsoft.com/en-us/library/dd239199(WS.10).aspx[^]. It shows the best practices of 2008 but the principles filter down to 2003.
AD Best Practices wrote: 2003 Do not join the instance of Windows Server 2008 that is running on the parent partition to the Windows SBS 2008 domain.
If you install the primary and second servers on virtual machines on a single physical computer, and you join the instance of Windows Server 2008 that is running on the parent partition to the Windows SBS 2008 domain, a cyclic dependency is created between the parent and child partitions. If this occurs, the domain controller on the virtual machine is unavailable, and it can become more difficult to manage the parent operating system. However, you can mitigate this issue if you have an additional Active Directory domain controller on a different physical computer in the domain. In this case, you can join the parent partition to the domain.
/edit
Zach
modified on Monday, November 9, 2009 10:00 AM
|
|
|
|
|
hi i just formated my pc and installed WinXP sp3. now when i lock my comp. (Windows + L) or (ctrl + alt + del) it loses connection (LAN). is there any registry hack or something else because it didn't do this before formating?
|
|
|
|
|
I have a client server applicaion. on the server side it uses ISAPI.dll and ilaServer.exe on windows 2000 server with IIS 5.0
build in C++
for some reasons the IIS hangs. and the IIS need to be restarted to set back to work.
I want to know the root cause for this hangs, and analyse the problem and reslove it.
source was in VS 2005. I tried using Dr. Watson Dumps
And tried to analise it in VS 2005, but it is not compatable (VS says it is old version of dump file )
Can you pls help & advice
|
|
|
|
|
Hi, how could we disable other created admin user account to reset the password of built-in admin user account in windows xp?
Thank in advance!!!
|
|
|
|