Sponsored Content
Full Discussion: Odd file with no name
Top Forums UNIX for Dummies Questions & Answers Odd file with no name Post 57886 by zazzybob on Tuesday 9th of November 2004 11:38:43 AM
Old 11-09-2004
It could have been some kind of non-printing character. I just created (under HP-UX 10.20), a "blank" filename using
touch ^H

With ls -l we get
-rw-rw-rw- 1 kw627 tech_srvs 0 Nov 9 16:40

If we do an ls -lb we see
-rw-rw-rw- 1 kw627 tech_srvs 0 Nov 9 16:40 \010

I used find to remove this too....

EDIT: An easier way to remove is to prefix the filename by the path, e.g. rm ./^H or mv ./^H junk - I'll also say I've had varying success deleting files with strange names (\014 is particularly hard to remove!), by FTPing in from a Windows machine (which doesn't interpret a lot of the escapes) and deleting the file (in this case DEL ^L does the job).

Cheers
ZB

Last edited by zazzybob; 11-09-2004 at 12:47 PM..
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Odd File Listing and unable to deleted

Hi, I'm trying to delete some files that are causing a script to malfunction. I cannot seem to remove them even with -f. I have tried chmod and chown and they don't seem to be affected the files at all. they have weird dates listings, too. Here is their listing: br-xr-xrwt 29561 538995051... (3 Replies)
Discussion started by: Jason Brice
3 Replies

2. UNIX for Dummies Questions & Answers

even odd script

I need a unix script that check for even or odd. EXAMPLE:::: please enter the number to check: 12 the output: This is an even number it has to have prompts. (2 Replies)
Discussion started by: snyper2k2
2 Replies

3. Shell Programming and Scripting

Odd and even file names

Hello, I want to sort/identify 600 files according to odd or even numbers in the files names. How can I do this? The goal is to perform different ImageMagick operations based on even or odd numbers in the file names. The file names have this pattern: bdf0001.tif, bdf0044.tif and bdf0136.tif ... (4 Replies)
Discussion started by: garganmou
4 Replies

4. UNIX for Dummies Questions & Answers

Finding the odd one out!

Hi guys, I wondered if someone would be able to help me. I have a number of files which all have entries in them looking something like; And I'm looking for a way where by I can compare a number of these files and identify the odd numbers in the sequence. So for example if I had to... (1 Reply)
Discussion started by: JayC89
1 Replies

5. Shell Programming and Scripting

odd problem in read lines from file

Hi, I wrote a small program to read lines from a file and count the lines. The program is as below: filename=$1 count=0 cat $filename | while read -r line do printf "%5d:%s\n" $count "$line" count=$((count + 1)) done echo " $count " After I run the program, the result is... (4 Replies)
Discussion started by: jianma
4 Replies

6. Solaris

Odd vi error

Hello, I have a weird think going on, on one of my servers. vi filename "/var/tmp" No such file or directory What going on here? (4 Replies)
Discussion started by: bitlord
4 Replies

7. Shell Programming and Scripting

Seperate Odd and Even numbers from 1 file to 2 files

Hey guys. I have been trying to figure out an easy way to seperate a liste of 150k numbers (10 digits) in a .txt file into odd and even numbers with each of their own files, for a project at work. I've tried Excel, but it was too much for it and it wasnt very simple. So i gave up after... (13 Replies)
Discussion started by: TranceC
13 Replies
Padre::Task::File(3pm)					User Contributed Perl Documentation				    Padre::Task::File(3pm)

NAME
Padre::Task::File - File operations in the background SYNOPSIS
# Recursively delete Padre::Task::File->new( remove => 'C:fooaraz', )->schedule; DESCRIPTION
The File::Remove CPAN module is a specialised package for deleting files or recursively deleting directories. As well as providing the basic support for recursive deletion, it adds several other important features such as removing readonly limits on the fly, taking ownership of files if permitted, and moving the current working directory out of the deletion path so that directory cursors won't block the deletion (a particular problem on Windows). The task takes the name of a single file or directory to delete (for now), and proceeds to attempt a recursive deletion of the file or directory via the File::Remove "remove" method. In the future, this module will also support more types of file operations and support the execution of a list of operations. METHODS
new my $task = Padre::Task::File->new( remove => '/foo/bar/baz', ); Creates a new deletion task. Takes a single parameter "remove" which must be an absolute path to the file to delete (as the "current directory" may change between the time the removal task is created and when it is executed). remove The "remove" accessor returns the absolute path of the file or directory the task will try to delete (or tried to delete in the case of completed tasks). SEE ALSO
Padre, Padre::Task, File::Remove COPYRIGHT
Copyright 2008-2012 The Padre development team as listed in Padre.pm. This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.14.2 2012-06-27 Padre::Task::File(3pm)
All times are GMT -4. The time now is 01:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy