- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Weird directory entry
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:31 AM
03-04-2004 12:31 AM
-rwxrwxr-x 1 cyborg cyborg 7 Oct 11 2002 file04.NANAC2
-rwxrwxr-x 1 cyborg cyborg 14 Jul 25 2001 file04.NANAC2
RDRDG2
-rwxrwxr-x 1 cyborg cyborg 7 Jul 25 2001 file04.NANAT1
It's the RDRDG2 I'm worried about. It was brought to my attention by a job I run every night to do a scp of these files.
This is the error message I'm getting:
"RDRDG2: skipping, filename contains a newline"
basil:/cyb45/test/params>file RDRDG2
RDRDG2: cannot open
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:39 AM
03-04-2004 12:39 AM
Re: Weird directory entry
"file04.NANAC2 RDRDG2"
You're seeing an effect of a line-wrap on your display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:40 AM
03-04-2004 12:40 AM
SolutionIf you do :
ls file04.NANANC2*
what do you get?
and
ls file04.NANANC2*2
If the second command returns the file
file04.NANAC2
RDRDG2
then try doing
mv file04.NANANC2*2 file04.NANANC2_RDRDG2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:41 AM
03-04-2004 12:41 AM
Re: Weird directory entry
file04.NANAC1
file04.NANAC2
file04.NANAC2
RDRDG2
file04.NANAT1
file04.NANAT2
file04.NCNCC1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:41 AM
03-04-2004 12:41 AM
Re: Weird directory entry
If the output you have given above is the exact output from a "ls -l" I would guess the culprit is the file "file04.NANAC2".
If the filename is really "file04.NANAC2
You could remove your odd file by going
rm -i file04.NANAC2* and entering "y" when it shows you the one with the funny name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:41 AM
03-04-2004 12:41 AM
Re: Weird directory entry
Could that actually be file04.NANAC2
Check with ll file04.NANAC2*
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:41 AM
03-04-2004 12:41 AM
Re: Weird directory entry
check that with ll -b or ll|cat -v
Then do a ll -il and find the inode no of it and then rename the file.
the find syntax is as follows.
cd /dir where file resides.
find . -inum "inode_no"|while read a;do mv $a file.txt;done
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:42 AM
03-04-2004 12:42 AM
Re: Weird directory entry
Try "ls -lb" - the "-b" option shows non-printing characters in octal (\n corresponds to \012).
If this is the case, it should be possible to delete it, although you may have to use something other than rm, e.g.
perl -e 'unlink "file04.NANAC2\nRDRG2"'
Anyway - please post ls -lb output.
regards
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:45 AM
03-04-2004 12:45 AM
Re: Weird directory entry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 12:46 AM
03-04-2004 12:46 AM
Re: Weird directory entry
find -inum xxxx -exec rm {} \;