RINT -----


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users RINT -----
# 8  
Old 12-17-2010
I did not say RINT is an inode number.
Try to forget that RINT for a short moment.
In your own listing, you posted:
Quote:
69219 -rwx------ 1 oracle dba 1263 Dec 8 02:43 initMYDB.ora
69233 -rwx------ 1 oracle dba 1263 Dec 16 10:44 initOURDB.ora
69231 -rwx------ 1 oracle dba 1263 Dec 16 10:42 initMYDB.ora
See those 2 files with same name (at first glimpse) and different inode numbers? That is what I am talking about. That is what the link is about. That is what the example I posted is about.
Where is the problem to try out the suggested things? What is not clear?
# 9  
Old 12-17-2010
Quote:
Originally Posted by big123456
Code:
ls -li 
69219 -rwx------    1 oracle   dba            1263 Dec  8 02:43 initMYDB.ora
69233 -rwx------    1 oracle   dba            1263 Dec 16 10:44 initOURDB.ora
69231 -rwx------    1 oracle   dba            1263 Dec 16 10:42 initMYDB.ora
RINT
58737 -rw-r--r--    1 oracle   dba           12920 May  3 2001  initdw.ora

What is RINT ? How to finish with it ? How to have only one good initMYDB.ora ?
My guess is there are some control characters. You have one file called "initMYDB.ora" and one file called "initMYDB.ora\rRINT" (where the \r is a carriage return character). I would recommend doing an "ls -l > txt" and vi the txt file to see if there are control characters.
# 10  
Old 12-17-2010
As citaylor says - that is one of the things mentioned in the linked thread. And if vi does not show anything suspicous with :set list, then you can also open that output of ls with od -c to make sure you are not missing anything.
# 11  
Old 12-17-2010
Hi.

The ls command can give you additional information:
Code:
#!/usr/bin/env bash

# @(#) s1   Demonstrate odd-looking filenames.

# Section 1, setup, pre-solution.
# Infrastructure details, environment, commands for forum posts.
# Uncomment export command to test script as external user.
# export PATH="/usr/local/bin:/usr/bin:/bin"
set +o nounset
pe() { for i;do printf "%s" "$i";done; printf "\n"; }
pl() { pe;pe "-----" ;pe "$*"; }
C=$HOME/bin/context && [ -f $C ] && . $C ls
set -o nounset
pe

# Section 3, solution.
pl " Results, normal ls:"
ls -lgo [abc]*

pl " Results, ls with -b option:"
ls -b -lgo [abc]*

pl " Results, ls with -q option:"
ls -q -lgo [abc]*

exit 0

producing:
Code:
$ ./s1

Environment: LC_ALL = , LANG = en_US
(Versions displayed with local utility "version")
aix 5.1.0.0
grep - ( /usr/bin/grep Oct 05 2004 )
GNU bash 3.00.16
ls - ( /usr/bin/ls Apr 01 2005 )


-----
 Results, normal ls:
-rw-r--r--   1          0 Dec 17 12:03 a
RINTr--r--   1          0 Dec 17 12:10 a
-rw-r--r--   1          0 Dec 17 12:03 b
-rw-r--r--   1          0 Dec 17 12:03 c
-rw-r--r--   1         25 Dec 17 12:10 create

-----
 Results, ls with -b option:
-rw-r--r--   1          0 Dec 17 12:03 a
-rw-r--r--   1          0 Dec 17 12:10 a\015RINT
-rw-r--r--   1          0 Dec 17 12:03 b
-rw-r--r--   1          0 Dec 17 12:03 c
-rw-r--r--   1         25 Dec 17 12:10 create

-----
 Results, ls with -q option:
-rw-r--r--   1          0 Dec 17 12:03 a
-rw-r--r--   1          0 Dec 17 12:10 a?RINT
-rw-r--r--   1          0 Dec 17 12:03 b
-rw-r--r--   1          0 Dec 17 12:03 c
-rw-r--r--   1         25 Dec 17 12:10 create

See man ls for details. Best wishes ... cheers, drl
# 12  
Old 12-17-2010
It looks to me like you have an executable file named
Code:
initMYDB.ora
RINT
# which is:
initMYDB.ora\nRINT

# 13  
Old 12-23-2010
Thanks to all.
I got rid of RINT. And now :
Code:
ls -lb
-rwx------ 1 oracle dba 1263 Dec 16 10:44 initMYDB.ora\033[D\033[D\033[D\033[D\033[D\033[D\033[Dx\033[DINT\033[C\033[C\033[C

But I can not delete :
Code:
rm: initMYDB.ora033[D033[D033[D033[D033[D033[D033[Dx033[DINT033[C033[C033[C: No such file or directory

How can I get rid of this file ??
# 14  
Old 12-23-2010
Code:
rm -i ./initMYDB.ora*

and make sure you select the correct one when/if it asks.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question