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
WWW::Mechanize::FormFiller::Value::Random::Word(3pm)	User Contributed Perl Documentation   WWW::Mechanize::FormFiller::Value::Random::Word(3pm)

NAME
WWW::Mechanize::FormFiller::Value::Random::Word - Fill a word into an HTML form field SYNOPSIS
use WWW::Mechanize::FormFiller; use WWW::Mechanize::FormFiller::Value::Random::Word; my $f = WWW::Mechanize::FormFiller->new(); # Create a random value for the HTML field "login" my $login = WWW::Mechanize::FormFiller::Value::Random::Word->new( login => size => 1 ); $f->add_value( login => $login ); # Alternatively take the following shorthand, which adds the # field to the list as well : # If there is no password, put a random one out of the list there my $password = $f->add_filler( password => Random::Word => size => 1 ); # Spew some bogus text into the comments field my $comments = $f->add_filler( comments => Random::Word => size => 10 ); DESCRIPTION
This class provides a way to write a randomly chosen value into a HTML field. new NAME, LIST Creates a new value which will correspond to the HTML field "NAME". The "LIST" is the list of arguments passed to Data::Random::rand_words. If the list is empty, "size => 1" is assumed. name [NEWNAME] Gets and sets the name of the HTML field this value corresponds to. value FIELD Returns the value to put into the HTML field. EXPORT None by default. COPYRIGHT AND LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Copyright (C) 2002,2003 Max Maischein AUTHOR
Max Maischein, <corion@cpan.org> Please contact me if you find bugs or otherwise improve the module. More tests are also very welcome ! SEE ALSO
Data::Random, WWW::Mechanize, WWW::Mechanize::Shell, WWW::Mechanize::FormFiller, WWW::Mechanize::FormFiller::Value::Value, WWW::Mechanize::FormFiller::Value::Default, WWW::Mechanize::FormFiller::Value::Fixed, WWW::Mechanize::FormFiller::Value::Interactive perl v5.10.1 2009-04-24 WWW::Mechanize::FormFiller::Value::Random::Word(3pm)
All times are GMT -4. The time now is 01:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy