Operating System - HP-UX
1819859 Members
2838 Online
109607 Solutions
New Discussion юеВ

Finding files like \\nt_server01\prod or \\dco4 4050 network

 
SOLVED
Go to solution
Kevin Daines
Advisor

Finding files like \\nt_server01\prod or \\dco4 4050 network

I've recently taken on the role of unix admin, and i'm a bit new to the enviroment. I was hoping to find out how i can find files with names like '\\nt_server01\prod' or '\\dc04 4050 network'

I would like to write a script that scans for these files and deletes them! I've got everything I need except the find command.

Regards
Kevin Daines
2 REPLIES 2
Pete Randall
Outstanding Contributor
Solution

Re: Finding files like \\nt_server01\prod or \\dco4 4050 network

Kevin,

You're right - it's the "find" command you need:

find /dir -name "\\nt_server01\prod" -exec rm {} \;


Pete

Pete
John Palmer
Honored Contributor

Re: Finding files like \\nt_server01\prod or \\dco4 4050 network

To find files that start \\ :-

find /dir -type f -name \\\\\\\\\*

That's 9 backslashes and an asterisk!

Regards,
John