How to identify 'Ctrl+M' character in a file.

Hi!
I have a problem in identifying 'Ctrl+m' or 'Ctrl+M' character in a given String or a file.
Any one knowing, how to achieve this is Welcomed.
This character(Ctrl+M) is not visible in DOS-Editor, Notepad, Eclipse, or TextPad.
I can identify this characters existence in a given String or File only in Vi-editor(Unix).
Help needed ASAP.
Thanks in Advance.

What you see is probably they way windows has line terminations.
Windows = \r\n
Unix \n
The \r is displayed as ^M when you look at the textfiles on unix.
I.e. You should look for the character '\r'
/Kaj

Similar Messages

  • How to deal with special character in source file

    Hi experts,
                      i am doing a file to file scenario in which my source file contains many special characters when i am puting this file into moni its going with the special character .My source file is a fixed length file so in content conversion i have specified the file length but due to these special charcters these field lenght is also varing.So please guide me how to deal with these special characters in sender adapter
    regards,
    Saurabh

    you could try using a Java Mapping to change the encoding manually. For that, set the encoding of the OutputFormat of the XML you'll serialize. Try the following code piece for the mapping (inside a try/catch declaration):
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder documentBuilder = factory.newDocumentBuilder();
    Document input = documentBuilder.parse(in);
    OutputFormat format = new OutputFormat(XML, "ISO-8859-1", false);
    XMLSerializer serializer = new XMLSerializer(out, format);
    For more details check this guide:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • How to identify a linefeed character in a string

    I have a table with some data in a VARCHAR2 column that contains linefeed characters.
    These were entered by users pressing 'return' when in a web text box.
    I want to get rid of these using the REPLACE function, but I'm having trouble identifying them.
    If I have the following sample data:
    CREATE TABLE test (text VARCHAR2(100));
    INSERT INTO test VALUES ('Sample Text one line');
    INSERT INTO test VALUES (
    'Sample Text '||chr(10)||
    'two lines');
    INSERT INTO test VALUES (
    'Sample '||chr(10)||
    'Text  '||chr(10)||
    'three lines');
    SELECT * FROM test;Then I'd like to identify them using something like...
    SELECT text FROM test WHERE text LIKE '%CHR(10)%';but that obviously doesn't work.
    How can I find them?
    Thanks.

    cd beats me ;)
    michaels>  CREATE TABLE TEST (ID INTEGER,text VARCHAR2(100))
    Table created.
    michaels>  INSERT INTO TEST
         VALUES (1, 'Sample Text one line')
    1 row created.
    michaels>  INSERT INTO TEST
         VALUES (2, 'Sample Text ' || CHR (10) || 'two lines')
    1 row created.
    michaels>  INSERT INTO TEST
         VALUES (3, 'Sample ' || CHR (10) || 'Text  ' || CHR (10) || 'three lines')
    1 row created.
    michaels>  SELECT ID, text
      FROM TEST
    WHERE text LIKE '%' || CHR (10) || '%'
            ID TEXT                                                                                               
             2 Sample Text                                                                                        
               two lines                                                                                          
             3 Sample                                                                                             
               Text                                                                                               
               three lines                                                                                        
    2 rows selected.

  • How to identify the encoding used in a file ?

    Hi all,
    I have to read a file and check it is encoded in UTF-8. How I can do this ?. If fiel is saved in MS Windows I can check for BOM. What if the file is saved using Java API ?. Is there any code(copy left code) available for doing this ?
    rgds
    Antony Paul

    The problem is that ther eare no definite tests for character encoding. A particular byte stream can be valid in any number of different encodings (even if the resulting characters are not correct). If the characters don't happen to include any above unicode 127 then a UTF-8 stream is identical to the same characters in any number of different encodings.
    It's not just a matter of there being no code for it in the library, it's impossible to do with any certainty, and to do it even probabalistically you'd have to run the results through a multi-lingual spelling checker.
    If you just ask java.io to open a Reader without specifying an encoding it will assume the default encoding of your system.

  • How can I modify ONE CHARACTER in the file name???

    I have in right side meta tag panel a file name , original name and copy name fields.
    The file was already renamed. So i am not interested original file name ,anyway i cant click on it.
    I would like to modify ONE +"!/"%/"+! CHARACTER in filename field which is 50 characters long.
    If I click on it gives me an batch rename window.
    If I click copy name I have to write all from zero BECAUSE I CANT COPY the filename field.
    so here we are in 21st century
    I have a solution: i copy the filename from vista explorer and paste it in copy name BUT what if I have to do this hundreds time???

    First, what has the copy name to do with file name? I think you're misunderstanding the purpose of the copy name field. It is for giving a virtual copy a distinctive name.
    Now for file naming... if I understood correctly, you want to edit the name right in the Metadata panel, but the file name field is non-editable. This is a bug. It is exhibited when you have multiple files selected and change the metadata panel view. You can temporarily fix it by selecting a single file in the grid and changing the metadata panel view from All to Default or vice versa (see the attached screenshot). Now that the field became editable, you change on character.
    If you want to do it for hundreds of files using a template, then would be nice if you provide your source and target filename templates.

  • How to identify exception stack traces in  log files programmatically

    Hello,
    I would like to develop a utility program which audits the command line or log files and detects exceptions.
    Do you know any good way of identifying exception stack traces from a stream?
    Are you aware of any existing tool that does something similar?
    Thank you in advance,
    Kostas

    I tried to copy/paste the entrire log file in the console but it seems that the copy/paste functionality in not included in the console pane.
    Regardless that problem is there any way to do that programmatically from my application?

  • How to identify the original source folder of files in the trash?

    I am trying to help a friend who trashed a massive amount of files. Dragging files out of the trash to where they originated from works when one knows where files in the trash came from. What I need to know is how to find out which folder the files originated from. Pictures from iPhoto library, easy ... but there are others that are a mystery.
    Any help is appreciated.
    She is using a macbook running Leopard.

    The only way anyone here could possibly tell where files came from would first have a list of the files with the exact file names. The files themselves don’t carry information of any previous paths, that I know of.
    With the photos, as you said, easy. If they are applications, again, easy, Applications folder. But if they are System files, those can be scattered all over.
    You said it is a massive number of files, so unless the vast majority are photos or applications, it would probably not be practical to make a list.

  • How to write new line character to a file from textarea

    Hi ,
    I want to save the contents of textarea in a file.The textarea may contain new line characters,
    I am getting the contents from the textarea using getText() method but after writing the contents to the file
    it stores the entire text in a single line.But I want the text as it apperars in the textarea.
    Please provide me a good solution.
    -mani

    maybe this code samples are useful to your problem
    File datatext = new File(fileName);
    try {BufferedWriter writer =new BufferedWriter(new OutputStreamWriter(new FileOutputStream(datatext)));
    writer.write(.......);
    writer.newLine();
    writer.close();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to identify which key figure will the numeric pointer for deltas?

    Hi All,
    I have created a numeric pointer for generic extraction ? but how to identify which key figure will the numeric pointer will use for deltas ?
    how to identify the key figures which is suitable for numeric pointer. And the generic extraction is based upon the copa table?
    Can anyone suggest me how the numeric pointer works and how to identify deltas are carried out at numeric pointer?
    Thanks
    Pooja

    Pooja,
    If you are using a generic extractor which is based on COPA table, then numeric pointer may not be the suggested delta extraction mechanism. 
    A time stamp would be the better one to use.  In a time stamp, you can give a lower limit value of 300 seconds.. so that it will try to fetch the missed records.
    Moreover, a delta would be based on a character, preferably a time char.
    In your requirement, try to figure out the character on whichdeltas will be based.
    Sasi

  • How to identify fibre channel HBA working or not

    Hi,
    I dont know how to identify FC hba card and port. I cant access the box because it is in a remote location.
    My customer is saying there is 3 hba cards and one is showing disconnected. I see three types of cards in path_to_inst file and luxadm -e port command.
    I cant understand the connection between the controller which showing in the cfgadm command and hba device.
    /devices/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0:devctl showing disconnected what does it mean?
    So Please help me to find answers of these questions.
    1) how many physical FC HBA cards are in this server.
    2) How many FC Ports are in this server
    3) Why controller C4 showing un configured.
    4) why /devices/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0:devctl showing disconnected
    logs :-
    bash-3.00# fcinfo hba
    fcinfo: invalid object
    Usage: fcinfo [-?] <OBJECT> [-?] [<OPERAND>]
    Usage by OBJECT:
    fcinfo hba-port [OPTIONS] [<WWN ...>]
    fcinfo remote-port <OPTIONS> [<WWN ...>]
    For more information, please see fcinfo(1M)
    bash-3.00# fcinfo hba-port
    HBA Port WWN: 10000000c93aa32d
    OS Device Name: /dev/cfg/c2
    Manufacturer: Emulex
    Model: LP9002L
    Firmware Version: 3.90a7 (C2D3.90A7)
    FCode/BIOS Version: Boot:3.20 Fcode:1.40a0
    Serial Number: BG40340370
    Driver Name: emlxs
    Driver Version: 2.50o (2010.01.08.09.45)
    Type: N-port
    State: online
    Supported Speeds: 1Gb 2Gb
    Current Speed: 2Gb
    Node WWN: 20000000c93aa32d
    HBA Port WWN: 10000000c93ae1be
    OS Device Name: /dev/cfg/c7
    Manufacturer: Emulex
    Model: LP9002L
    Firmware Version: 3.92a3 (C2D3.92A3)
    FCode/BIOS Version: Boot:3.20 Fcode:none
    Serial Number: BG40855848
    Driver Name: emlxs
    Driver Version: 2.50o (2010.01.08.09.45)
    Type: N-port
    State: online
    Supported Speeds: 1Gb 2Gb
    Current Speed: 2Gb
    Node WWN: 20000000c93ae1be
    HBA Port WWN: 210000e08b08c5c1
    OS Device Name: /dev/cfg/c4
    Manufacturer: QLogic Corp.
    Model: QLA2200
    Firmware Version: 02.01.145
    FCode/BIOS Version: fcode: 0.00;
    Serial Number: not available
    Driver Name: qlc
    Driver Version: 20090929-2.32
    Type: unknown
    State: offline
    Supported Speeds: 1Gb
    Current Speed: not established
    Node WWN: 200000e08b08c5c1
    bash-3.00#
    bash-3.00# cat /etc/path_to_inst | grep -i fp
    "/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0" 3 "fp"
    "/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0/ssd@w5001738001900142,1" 0 "ssd"
    "/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0/ssd@w5001738001900142,2" 2 "ssd"
    "/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0/ssd@w5001738001900160,1" 3 "ssd"
    "/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0/ssd@w5001738001900190,1" 4 "ssd"
    "/ssm@0,0/pci@19,600000/lpfc@1/fp@1,0" 4 "fp"
    "/ssm@0,0/pci@1b,600000/lpfc@1/fp@0,0" 1 "fp"
    "/ssm@0,0/pci@1b,600000/lpfc@1/fp@0,0/ssd@w5001738001900170,1" 1 "ssd"
    "/ssm@0,0/pci@1b,600000/lpfc@1/fp@1,0" 2 "fp"
    "/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0" 5 "fp"
    "/ssm@0,0/pci@1f,600000/QLGC,qla@1/fp@0,0" 0 "fp"
    "/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0" 6 "fp"
    "/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@1,0" 7 "fp"
    bash-3.00# cfgadm -al | grep -i fc
    c2 fc-fabric connected configured unknown
    c4 fc connected unconfigured unknown
    c7 fc-fabric connected configured unknown
    bash-3.00# luxadm -e port
    /devices/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0:devctl CONNECTED
    /devices/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0:devctl CONNECTED
    /devices/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0:devctl NOT CONNECTED
    bash-3.00#
    bash-3.00#
    bash-3.00#
    bash-3.00#
    bash-3.00# cfgadm -alv | grep -i fc
    unavailable fc-fabric n /devices/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0:fc
    unavailable array-ctrl n /devices/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0:fc::5001738001900142
    unavailable fc n /devices/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0:fc
    unavailable fc-fabric n /devices/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0:fc
    unavailable array-ctrl n /devices/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0:fc::5001738001900160
    unavailable array-ctrl n /devices/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0:fc::5001738001900190
    bash-3.00#

    If you see state other than online, or speed "not established," the HBA is not working, but it may not be connected to anything.
    If you think it is connected, get the WWN from the "HBA Port WWN" field, and run
    fcinfo remote-port wwn
    If you don't get any information back, you're not seeing any other FC devices (might be a switch zoning issue).
    If you see other ports (usually their WWN starts with a 5), but not your LUNs, add -s, and you can see which LUNs have been masked (made available) to this WWN.
    If you add -l, you can see the error counters for the link, which should be very low (single digit) and not increasing. If not, you might have a bad cable or SFP/GBIC.
    Hope this helps!

  • How can I increase the character limit of my text messages for Droid Maxx 4.4?

    How can I increase the character limit of my text messages for Droid Maxx 4.4?

    Send as a MMS.

  • How to read the content of a text file (by character)?

    Guys,
    Good day!
    I'm back just need again your help. Is there anyone knows how to read the content of a text file not by line but by character.
    Please help me. Thank you so much in advance.
    Jojo

    http://java.sun.com/javase/6/docs/api/index.html
    package java.io
    InputStream.read(): int
    Reads the next byte of data from the input stream.
    Implementation:
    InputStreamReader
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

  • How to add a new character set encoding?

    Hello,
    can anybody please explain to me, how to add a new character set encoding to Mac OS Tiger?
    I have two Mac laptops, a new one with Snow Leopard and an older one with Tiger, and on the old one i cannot use or enable anywhere the "Russian (DOS)" character set encoding, which i need to be able to use some old text files.
    On the Snow Leopard, this encoding is present in the list of available encodings of TextWrangler, but not in TIger.
    If i have understood correctly, this is not a problem of TextWrangler, and the same encodings are available systemwide.
    So, the question is: how to add new encodings to Tiger (or to Mac OS in general)?
    Thanks.

    I think possibly that's in the Get Info window of Finder?
    I don't think either that or the input menu have any effect on available encoding choices. Adding languages to system prefs/international/languages can do that, but once you have added Russian there, I don't know of any way to add an additional Russian encoding (there are quite a number of them).

  • How do I delete a character tag so it does not continue to show up in my designer.

    Hello.
    I have deleted a character tag from the catalog but it keeps showing up in the designer and stays associated with any new paragraph tag I try to create. How can I set the character designer to blank?
    Thanks

    >System Preferences>Mission Control>Show Desktop...should be F11:
    If not, change it.

  • How to identify missing records in a single-column table?

    How to identify missing records in a single-column table ?
    Column consists of numbers in a ordered manner but the some numbers are deleted from the table in random manner and need to identify those rows.

    Something like:
    WITH t AS (
               SELECT 1 ID FROM DUAL UNION ALL
               SELECT 2 ID FROM DUAL UNION ALL
               SELECT 3 ID FROM DUAL UNION ALL
               SELECT 5 ID FROM DUAL UNION ALL
               SELECT 8 ID FROM DUAL UNION ALL
               SELECT 10 ID FROM DUAL UNION ALL
               SELECT 11 ID FROM DUAL
    -- end of on-the-fly data sample
    SELECT  '[' || (id + 1) || ' - ' || (next_id - 1) || ']' gap
      FROM  (
             SELECT  id,
                     lead(id,1,id + 1) over(order by id) next_id
               FROM  t
      where id != next_id - 1
    GAP
    [4 - 4]
    [6 - 7]
    [9 - 9]
    SQL> SY.
    P.S. I assume sequence lower and upper limits are always present, otherwise query needs a little adjustment.

Maybe you are looking for