12-01-2008
Try displaying bad characters in a filename with "-b" switch to "ls". The bad characters come out in octal.
For example a filename containg a ctrl/X character (octal 30) comes out like duff\030file .
ls -lab
Once you know the name of the file it is safer to rename the file, then decide what to do with it.
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've some files created by a script.
For some reason last time the script run was interrupted for an error and the files produced by the script are undeletable.
i've tryed as root with command 'rm' and even if i got no error in command execution the files are still there.
These are the... (9 Replies)
Discussion started by: mirrorx
9 Replies
2. Shell Programming and Scripting
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
3. Shell Programming and Scripting
Hi,
I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file.
File1 - file2 = file3
wc -l file1.txt
58112
wc -l file2.txt
55260
head -5 file1.txt
101214200123
101214700300
101250030067
101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies
4. Shell Programming and Scripting
Shell script logic
Hi
I have 2 input files like with file 1 content as (file1)
"BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt
File 2 contents as fle(2)
"BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt
I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
5. OS X (Apple)
Greetings,
I'm trying to delete a file with a weird name from within Terminal on a Mac.
It's a very old file (1992) with null characters in the name: ââWord FinderÂŽ Plusâ˘.
Here are some examples of what I've tried:
12FX009:5 dpontius$ ls
ââWord FinderÂŽ Plusâ˘
12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies
LEARN ABOUT SUNOS
wnndtoa
wnndtoa(1) User Commands wnndtoa(1)
NAME
wnndtoa - Convert a binary dictionary to an EUC text dictionary
SYNOPSIS
/usr/bin/wnndtoa [-n] [-s] [-e | -E] [-h filename] binary_dictionary_filename [ frequency_filename. ..]
DESCRIPTION
wnndtoa converts the specified binary dictionary binary_dictionary_filename to a text dictionary file (in Japanese EUC) and writes it to
the standard output.
If you specify one or more frequency files (frequency_filename), the frequency information affects the text dictionary.
OPTIONS
The following options are available.
-n Sorts entries by reading (in the order of long sound symbol, Hiragana (full-width characters), and alphanumerics (ASCII charac-
ters)).
-s Adds serial numbers to the entries.
-e Expands entries to special representation. For example, space characters and tabs are expanded to octal representation
(default).
-E Does not expand entries to special representation. For example, space characters and tabs are not expanded to octal representa-
tion
-h filenaSpecifies the part of speech file name. The default is /usr/lib/locale/ja/wnn/ja/hinsi.data .
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWjwncu |
+-----------------------------+-----------------------------+
SEE ALSO
wnnatod(1), wnndictutil(1), wnn_hinsi.data(4)
SunOS 5.10 2 Mar 1998 wnndtoa(1)