Sponsored Content
Full Discussion: Undeletable file
Operating Systems OS X (Apple) Undeletable file Post 303036943 by dpontius on Thursday 18th of July 2019 12:48:48 PM
Old 07-18-2019
Undeletable file

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:

Code:
12FX009:5 dpontius$ ls
␀␀Word Finder® Plus™
12FX009:5 dpontius$ rm "␀␀Word Finder® Plus™"
rm: ␀␀Word Finder® Plus™: Invalid argument

12FX009:5 dpontius$ rm -r
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
12FX009:5 dpontius$ ls
␀␀Word Finder® Plus™

12FX009:4 dpontius$ rm -r 5
rm: 5/␀␀Word Finder® Plus™: Invalid argument
rm: 5: Directory not empty

12FX009:5 dpontius$ mv ␀␀Word Finder® Plus testName
usage: mv [-f | -i | -n] [-v] source target
       mv [-f | -i | -n] [-v] source ... directory

12FX009:5 dpontius$ mv "␀␀Word Finder® Plus™" testName
mv: rename ␀␀Word Finder® Plus™ to testName: Invalid argument

Help appreciated greatly!

cheers,
dp

Last edited by Scrutinizer; 07-18-2019 at 03:21 PM.. Reason: code tags correction
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

undeletable file

when i try to ls -lrt the directory, the "undeletable" file is listed. but when i try to ls -lrt *exe, the "undeletable" file is not listed. this "undeletable" is the file that i want to delete from the directory. but when i try to delete/rename/copy.... it, it show that "No such file or... (10 Replies)
Discussion started by: chxxangie
10 Replies

2. UNIX for Dummies Questions & Answers

Files.... undeletable.

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

3. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

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

4. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

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

5. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

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
PDB(4)																	    PDB(4)

NAME
PDB - (Pilot Database) file format SYNOPSIS
#define dmDBNameLength 32/* 31 chars + 1 null terminator */ struct pdb_header { /* 78 bytes total */ char name[ dmDBNameLength ]; Word attributes; Word version; DWord create_time; DWord modify_time; DWord backup_time; DWord modificationNumber; DWord appInfoID; DWord sortInfoID; char type[4]; char creator[4]; DWord id_seed; DWord nextRecordList; Word numRecords; }; struct pdb_rec_header { /* 8 bytes total */ DWord offset; struct { int delete : 1; int dirty : 1; int busy : 1; int secret : 1; int category : 4; } attributes; char uniqueID[3]; } DESCRIPTION
The PDB (Pilot Database) file format is used by all models of the Palm Pilot and IBM Workpad. The format consists of a header followed by a set of record headers followed by the records themselves. Word Sizes In the SYNOPSIS above, the types ``Byte,'' ``Word,'' and ``DWord'' are used just as in the Pilot headers. The type ``Byte'' is 8 bits; ``Word'' is 16 bits; ``DWord'' is 32 bits. The latter two are in big-endian format. CAVEATS
1. The C structures given in the SYNOPSIS above are illustrative and most likely will not work in actual C code since compilers align data members on word boundaries. 2. The PDB file format presented here is not official and was written at the time when PDB file format was not public. It is possibly out- dated. The official standard is available on the Palm web page. (SEE ALSO) SEE ALSO
txt2pdbdoc(1), html2pdbtxt(1), pdbtxt2html(1), doc(4) Palm Computing Inc. Palm File Format Specification, 2000. http://www.palmos.com/dev/support/docs/fileformats/front.html AUTHOR
Paul J. Lucas <pauljlucas@mac.com> Updated by Erik Schanze <eriks@debian.org> txt2pdbdoc August 20, 2005 PDB(4)
All times are GMT -4. The time now is 12:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy