08-05-2010
Personally I would rename the directory to something sensible and avoid passing strange filenames to powerful commands like "rm".
Btw. The posted "find" commands could be improved with a "-xdev" (or in some older versions "-mount") parameter because inode numbers are only unique within a filesystem.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Dummies Questions & Answers
Dear Members,
We have a file which contains some special characters. I need to replace these special character by a new line character(\n).
The Special character is \x85.
I am not sure what this character means and how we can remove it.
Any inputs are greatly appreciated.
Thanks... (5 Replies)
Discussion started by: sandeep_1105
5 Replies
3. Shell Programming and Scripting
Hi All,
i am trying to remove all special charecters().,/\~!@#%^$*&^_- and others from a tab delimited file.
I am using the following code.
while read LINE
do
echo $LINE | tr -d '=;:`"<>,./?!@#$%^&(){}'|tr -d "-"|tr -d "'" | tr -d "_"
done < trial.txt > output.txt
Problem
... (10 Replies)
Discussion started by: kkb
10 Replies
4. Shell Programming and Scripting
hello all
I am writing a perl code and i wish to remove the special characters for text.
I wish to remove all extended ascii characters. If the list of special characters is huge, how can i do this using substitute command
s/specialcharacters/null/g
I really want to code like... (3 Replies)
Discussion started by: vasuarjula
3 Replies
5. Shell Programming and Scripting
Hello all
I am getting data like
col1 | col2 | col3
asdafa | asdfasfa | asf*&^sgê
345./ |sdfasd23425^%^&^ | sdfsa23
êsfsfd | sf(* | sdfsasf
My requirement is like
I have to to read the file and remove all special characters and hex characters ranging form 00-1f from 1st column, remove %"'... (1 Reply)
Discussion started by: vasuarjula
1 Replies
6. Shell Programming and Scripting
(5 Replies)
Discussion started by: number10
5 Replies
7. UNIX for Advanced & Expert Users
My application generate file but it have special characters in these file.
I would like to clear special characters by vi editor and not use cat /dev/null > to_file
I try to remove characters manually, but I'm can not!
root@MyHost /tmp> ls -l puzzle.txt
-rw-r--r-- 1 root system ... (5 Replies)
Discussion started by: arm_naja
5 Replies
8. Shell Programming and Scripting
Thank you for 4 looking this post.
We have a tab delimited file where we are facing problem in a lot of funny character. I have tried using awk but failed that is not working.
In the 5th field ID which is supposed to be a integer only of that file, we are getting corrupted data as below.
I... (12 Replies)
Discussion started by: Srithar
12 Replies
9. UNIX for Beginners Questions & Answers
Hi Guys,
My requirement is to remove any invisible and special characters from the file like control M(carriage return) and alt numerics and it should not replace @#!$%
abc|xyz|acd¥£ó
adc|123| 12áí
Please help on this.
Thanks
Rakesh (1 Reply)
Discussion started by: rakeshp
1 Replies
10. UNIX for Advanced & Expert Users
Hi Guys,
My requirement is to remove any invisible and special characters from the file like control M(carriage return) and alt numerics and it should not replace @#!$%
abc|xyz|acd¥£ó
adc|123| 12áí
Please help on this.
Thanks
Rakesh (1 Reply)
Discussion started by: rakeshp
1 Replies
LEARN ABOUT REDHAT
xfs_ncheck
xfs_ncheck(8) System Manager's Manual xfs_ncheck(8)
NAME
xfs_ncheck - generate pathnames from i-numbers for XFS
SYNOPSIS
xfs_ncheck [ -i ino ] ... [ -f ] [ -s ] [ -l logdev ] device
DESCRIPTION
xfs_ncheck with no -i arguments generates an inode number and pathname list of all files on the given filesystem. Names of directory files
are followed by /.. The output is not sorted in any particular order. The filesystem to be examined is specified by the device argument,
which should be the disk or volume device for the filesystem. Filesystems stored in files can also be checked, using the -f flag.
OPTIONS
-f Specifies that the filesystem image to be processed is stored in a regular file at device (see the mkfs.xfs -d file option). This
might happen if an image copy of a filesystem has been made into an ordinary file.
-l logdev
Specifies the device where the filesystem's external log resides. Only for those filesystems which use an external log. See the
mkfs.xfs -l option, and refer to xfs(5) for a detailed description of the XFS log.
-s Limits the report to special files and files with setuserid mode. This option may be used to detect violations of security pol-
icy.
-i ino Limits the report to only those files whose inode numbers follow. May be given multiple times to select multiple inode numbers.
If the filesystem is seriously corrupted, or very busy and looks like it is corrupt, a message of the form that would be generated by
xfs_check(8) may appear.
xfs_ncheck is only useful with XFS filesystems.
SEE ALSO
mkfs.xfs(8), xfs_check(8), xfs(5).
xfs_ncheck(8)