Sponsored Content
Operating Systems HP-UX special character on Filename.. help!!!urgent Post 302159783 by shamrock on Friday 18th of January 2008 02:55:10 PM
Old 01-18-2008
Quote:
Originally Posted by genzbeat
I'm trying to rename a file name but the original file has a special character caused by typo. I've tried numerous combination of characters but the file name (original) is still not being recognized which in turn, would not allow me to rename the file.

Can someone help? The filename is a Oracle 9i Database Datafile.
Code:
ls -il  # get inode num of the file
find . -type f -inum "inode num goes here" -exec mv {} newfilename \;  # rename file using inum obtained from ls -il

 

10 More Discussions You Might Find Interesting

1. Programming

special character ?

hey there im a bit stuck on executing commands that include the special character '?'. can someone recommend a way on how i would be able to execute it?? i thought the glob function could be useful (still mite be) but upon entering the command 'ls pars?' it listed all the files in the... (1 Reply)
Discussion started by: mile1982
1 Replies

2. Shell Programming and Scripting

Open filename with special characters in Perl

Hi All, I am facing a weird problem. I have got a directory structure copied from windows to Linux. Some of the folders are named like /gfs/data/Dow Jones $5/ DJ FCBOT_O_tick_1998.zip /gfs/data/Dow Jones $5/ DJ FCBOT_O_tick_2000.CSV /gfs/data/Dow Jones... (6 Replies)
Discussion started by: mitrashatru
6 Replies

3. Shell Programming and Scripting

Urgent: How to eliminate special symbols in a file and how to read it

Hi, I have file called suppliersList.txt --------------------------------- 112|MIMUS|krish@google.com 113|MIMIRE|krish@google.com 114|MIMCHN|krish@google.com 115|CEL|krish@google.com 108|UGEN|krishn@google.com 109|SLAND|krish@google.com i have 3 varibale ------------- no Name... (4 Replies)
Discussion started by: kittusri9
4 Replies

4. UNIX for Dummies Questions & Answers

How to copy/move to a file with a special character as the 1st char in the filename?

I am trying to create files with special characters in its filenames for testing purposes. This is on a Linux RHEL4 but this should also be applicable on a Unix shell. I am able to create files with special characters in the filenames...e.g. cp -pv foo.gif \*special.gif cp -pv foo.gif \... (6 Replies)
Discussion started by: sqa777
6 Replies

5. Shell Programming and Scripting

special character

Hi, I am trying to unload file from a database. Which contains few lines with the character below. Rest of the data was unloaded appropriately. a) What does this below character means? b) How can i remove it, I already have sed '/^$/d' c) Will this effect the file by any means... (4 Replies)
Discussion started by: tostay2003
4 Replies

6. Shell Programming and Scripting

remove special characters from filename recursively

hi: i have several thousand files from users and of course they use all kind of characters on filenames. I have things like: My special report (1999 ) Lisa & Jack's work.doc crazy. How do I remove all this characters in the current dir and subdirs too? Thanks. (3 Replies)
Discussion started by: jason7
3 Replies

7. Shell Programming and Scripting

Deleteing one character after an special character

I have below line in a unix file, I want to delete one character after "Â". 20091020.Non-Agency CMO Daily Trade Recap Â~V Hybrids The result should be : 20091020.Non-Agency CMO Daily Trade Recap  Hybrids i dont want to use "~V" anywhere in the sed command or any other command, just remove... (1 Reply)
Discussion started by: mohsin.quazi
1 Replies

8. Shell Programming and Scripting

Vi special character

When editing a file, vi displays a special character as ^L. Can you tell me the escaped character to be used in awk? And can that escaped character be used in a regexp in both sed and awk? (7 Replies)
Discussion started by: dmesserly
7 Replies

9. Shell Programming and Scripting

Finding a certain character in a filename and count the characters up to the certain character

Hello, I do have folders containing having funny strings in their names and one space. First, I do remove the funny strings and replace the space by an underscore. find . -name '* *' | while read file; do target=`echo "$file" | sed 's/... (2 Replies)
Discussion started by: tempestas
2 Replies

10. Shell Programming and Scripting

^M special character in Filename

Hi All, Special character ? is added in between filename. Am not able to figure our why this is happening. In my Development environment special characters are not present. This issue is happening in the higher environment. It would be helpful if somebody can tell what are the possible... (3 Replies)
Discussion started by: weknowd
3 Replies
stanza(4)						     Kernel Interfaces Manual							 stanza(4)

NAME
stanza - Stanza file format SYNOPSIS
stanza DESCRIPTION
A stanza file format is used in conjunction with the libAF(3) stanza file library. The stanza file syntax rules are as follows: Separate entries by one or more blank lines. A colon (:) terminates a entry name. A newline terminates an attribute name and value pair. Separate a attribute name and attribute value with an equal sign (=). Separate more than one attribute value with a comma (,). Entry names and attribute names can contain any printable character, except whitespace, a newline, or special characters, unless specified appropriately. Entry attribute values can contain any printable character, except a newline or spe- cial characters, unless specified appropriately. Trailing blanks or tabs are allowed at the beginning or end of lines. A number sign (#) at the beginning of a line indicates a comment. Comments should be included only at the beginning or the end of an entry. The syntax for a stanza file entry is as follows: entry_name: Attribute1_name = Attribute1_value Attribute2_name = Attribute2_value Attribute3_name = Attribute3_value1, Attribute3_value2 . . . The entry_name variable specifies the entry name. The attributes for the entry are specified with the Attribute1_name, Attribute2_name, and Attribute3_name variables. The values for the attributes are specified with the Attribute1_value, Attribute2_value, Attribute3_value1, and Attribute3_value2 variables. Several special quoting characters allow attribute values to contain special values and data representations. If you specify a quoting character, surround the attribute value with quotes. For example, to specify an octal value use the slash character: 07 RELATED INFORMATION
Commands: sysconfigdb(8), cfgmgr(8) Functions: libAF(3) Files: /etc/sysconfigtab(4) delim off stanza(4)
All times are GMT -4. The time now is 02:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy