Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Special Characters in directory name Post 302084461 by nathan on Friday 11th of August 2006 07:06:33 AM
Old 08-11-2006
To help determine what the characters are, I would use the '-b' option with ls.
Code:
       -b, --escape
              print octal escapes for nongraphic characters

For filenames with special characters, I think it's easiest to use a typeglob. Do you have any other files that start with "personnel"? If not,
Code:
cd personnel*

would probably place you in that directory. Then just use 'ls' to see if it has files.

Code:
rmdir personnel*

would attempt to delete the directory, and would complain if it contained any files. Just make sure you don't have any other directories that start with "personnel".
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

special characters

I have one file which is named ^? ( the DEL character ) I'd like to know how to rename or copy the file by using its i-node number TYIA (2 Replies)
Discussion started by: nawnaw
2 Replies

2. UNIX for Dummies Questions & Answers

Array with special Characters

Hi, I would write a shell script to execute a series of command. However, if the cmd contains "-" in the array. It fails to do so. I'd tried use ', " or \ but get the same result. Output: (1 Reply)
Discussion started by: donaldfung
1 Replies

3. UNIX for Dummies Questions & Answers

Remove directory that has special Characters

Hi All, I have a script written that creates a new directory within the shell program and if a parameter isn't passed in, it creates a strange directory name by mistake. So I have a directory like "-_12" and I am unable to remove it. I tried removing it using double quote and many others. I have... (12 Replies)
Discussion started by: datherriault
12 Replies

4. UNIX for Dummies Questions & Answers

help on vi (special characters) needed

How to add characters (not on the keyboard) with vi to a file? Example: How can I enter the copyright sign (UTF-8-Codetable: 169) with vi? (3 Replies)
Discussion started by: desertchannel
3 Replies

5. Shell Programming and Scripting

Special characters

When I open a file in vi, I see the following characters: \302\240 Can someone explain what these characters mean. Is it ASCII format? I need to trim those characters from a file. I am doing the following: tr -d '\302\240' ---------- Post updated at 08:35 PM ---------- Previous... (1 Reply)
Discussion started by: sid1982
1 Replies

6. Solaris

How to remove a directory or file with special characters in Solaris

I finally figured out how to remove a file or directory with special characters in the name. It's kind of rudimentary so I thought I would share it with everyone: find .inum -exec rm -rf {} \; (7 Replies)
Discussion started by: jastanle84
7 Replies

7. UNIX for Dummies Questions & Answers

How to see special characters?

Hi all, I was wondering how can i see the special characters like \t, \n or anything else in a file by using Nano or any other linux command like less, more etc (6 Replies)
Discussion started by: gvj
6 Replies

8. Shell Programming and Scripting

special characters

Hey guys, I'm trying to replace "]Facebook" from the text but sed 's/]Facebook/Johan/g' is not working could you please help me with that? (6 Replies)
Discussion started by: Johanni
6 Replies

9. Shell Programming and Scripting

Replace special characters with Escape characters?

i need to replace the any special characters with escape characters like below. test!=123-> test\!\=123 !@#$%^&*()-= to be replaced by \!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Discussion started by: laknar
8 Replies

10. UNIX for Advanced & Expert Users

How to replace special characters?

Hi Team, I have data like this. |*|.5|*|0.2|*|A.B|*| Would like to add zero (0) before the decimal point where there is no zero as |*|0.5|*|0.2|*|A.B|*| How to replace |*|. with |*|0. I tried below command which didn't work echo '|*|.5|*|0.2|*|A.B|*' | sed... (4 Replies)
Discussion started by: Ravi.K
4 Replies
sys_attrs_cam(5)						File Formats Manual						  sys_attrs_cam(5)

NAME
sys_attrs_cam, sys_attrs_cam_disk, sys_attrs_cam_tape - SCSI CAM I/O subsystem attributes DESCRIPTION
This reference page lists and describes attributes for the following kernel subsystems associated with the SCSI CAM I/O system: cam cam_adapter-id cam_disk cam_tape An asterisk (*) precedes the name of an attribute that is modifiable at run time. However, the ability to modify the value at run-time may be a software requirement. Read the attribute description carefully to determine whether run-time configuration should ever be done manu- ally. Refer to the sys_attrs(5) reference page for an introduction to the topic of kernel subsystem attributes. cam and Adapter-Specific Cam Subsystem Attributes Values of attributes for the CAM (cam) subsystem and adapter-specific (cam_adapter-id) CAM subsystems should never be modified. cam_disk Subsystem Attributes Attributes for the cam_disk subsystem should be changed internally or under the direction of support personnel. Most of these attributes have a global effect across all disk devices. If the affected devices are of the same type, a global change may be appropriate. However, global changes applied to devices with different requirements is likely to adversely affect some of the devices. The Hardware Manager application allows you to apply device-specific adjustments and it is recommended that you use this interface. Number of seconds that the subsystem waits in the presence of repeated device busy signals before performing a bus device reset operation on the device. Do not modify the setting for this attribute unless instructed to do so by support personnel or by patch kit documentation. This attribute has effect only in a TruCluster environment. Do not modify the setting for this attribute unless instructed to do so by support personnel or by patch kit documentation. This attribute has effect only in a TruCluster environment. Do not modify the setting for this attribute unless instructed to do so by support personnel or by patch kit documentation. This attribute has effect only in a TruCluster environment. Do not modify the default setting for this attribute unless instructed to do so by support personnel or by patch kit documentation. A value that indicates how long to wait after the start of constant "no connection" errors for the disk device before starting recovery procedure. The default value indicates that all bits are set to 1. This specifies that disk driver defaults for this wait interval are applied. Do not modify the setting for this attribute unless instructed to do so by support personnel or by patch kit documentation. A set- ting change is global; that is, it overrides the default wait interval for all disk drivers and is likely to cause unpredictable behavior in some devices. Do not modify the setting for this attribute unless instructed to do so by support personnel or by patch kit documentation. Disk drive initialization state, which is set by the subsystem. This attribute is query only. A query-only identifier that is set by the subsystem. A query-only identifier that is set by the subsystem. Do not modify the setting for this attribute unless instructed to do so by support personnel or by patch kit documentation. Default value: 2 (spinups) Number of seconds that device polling reveals a drive is inactive before spinning down the disk. Default value: 30 (seconds) Minimum value: 5 Maximum value: 65,535 cam_tape Subsystem Attributes Do not modify the default setting for this attribute unless instructed to do so by support personnel or by patch kit documentation. Default value: 0 A value queried by the tape device driver to determine its initialization state. You cannot modify this variable. The driver changes the value from 0 (when the system starts to boot) to 1 (during the boot operation). A value that specifies the system behavior when a write-locked tape is opened with the O_RDWR or O_WRONLY flag. The default and rec- ommended behavior (1) is to return failure on the open operation. The alternate behavior (0) is to allow the open operation but return failure on an attempt to write to the tape. Default value: 1 It is recommended that you do not change the default. The 0 value is intended only for customers whose applications ran on DIGITAL UNIX versions earlier than Version 4.0B and depend on the open behavior in effect for those earlier versions. SEE ALSO
sys_attrs(5) sys_attrs_cam(5)
All times are GMT -4. The time now is 07:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy