need help.. ! Production Env.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers need help.. ! Production Env.
# 1  
Old 08-22-2008
need help.. ! Production Env.

Hi !

I want to delete a softlink... with a name..

" -> ALCATEL "

FYI:-

lrwxrwxrwx 1 infomcm develop 32 Dec 3 2007 COX -> /wlsuite/om/cm/build/sandbox/COX
lrwxrwxrwx 1 infomcm develop 33 Jul 21 05:52 WL10 -> /wlsuite/om-cm/build/sandbox/WL10
lrwxrwxrwx 1 infomcm develop 7 Aug 22 14:36 -> ALCATEL
drwxr-xr-x 2 infomcm develop 1024 Aug 22 14:43 .

Pls... help ASAP.
# 2  
Old 08-22-2008
This should work,

Try this fist to make sure it ONLY lists the file you want to delete.

Code:
find /path/to/*ALCATE*

If that finds only that file then:

Code:
find /path/to/*ALCATE* -exec rm {} \;

# 3  
Old 08-22-2008
Notice that in your ls output, there doesn't seem to be a name for that link. It's possible it's been created with a non-printable character.

Try `ls -lb`

That should list it with non-printables escaped with octal codes. Like so:

Code:
$ ls -l
total 0
lrwxrwxrwx 1 danny users 9 Aug 22 15:26 ? -> /etc/motd
lrwxrwxrwx 1 danny users 9 Aug 22 15:26   -> /etc/motd
$ 

$ ls -lb
total 0
lrwxrwxrwx 1 danny users 9 Aug 22 15:26 \002 -> /etc/motd
lrwxrwxrwx 1 danny users 9 Aug 22 15:26 \  -> /etc/motd
$

In that case, I have two links. The first is a single character, Control-B (ascii code 2), the second is named ' ' (Space).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. IP Networking

Production to DR switch

Hi, I have application server on IP 10.10.220.42 (Prod). When the Production goes down I wish to switch over all my application server's configuration files onto IP 10.10.220.45 (DR). The client is exposed to proxy apache http webserver running @ IP 10.10.220.30 Can you please suggest... (4 Replies)
Discussion started by: mohtashims
4 Replies

2. Web Development

Deny from env=env-variable Does not work

(Above from Apache docs). On my system, using: SetEnvIf User-Agent Mozilla IsBad=1 Order allow,deny Allow from all Deny from env=IsBad ...I see that environment variable is set (using phpinfo()) but the page is still served. No errors in the Apache logs. (1 Reply)
Discussion started by: gnurob
1 Replies

3. BSD

Copying OpenBSD Kernel from a non production to production machine

Hi All, There are few OpenBSD 4.8 servers without compiler installed at my working place. However, sometimes there are some patches released for patching the kernel. My question is: Can I setup a non production OpenBSD 4.8 server as a test machine with compiler installed and use it to... (1 Reply)
Discussion started by: lcxpics
1 Replies

4. Shell Programming and Scripting

Adding command line env in cron env

Hello friends, i run two scripts manually & they work. i run them in cron & they don work. how to match the two env's 1.command line env 2.cron env i would like cron to use command line env. Thanks & Regards Abhijeet (1 Reply)
Discussion started by: abhijeetkul
1 Replies
Login or Register to Ask a Question