Not able to remove special character ^I in file in Linux system
Hi All,
We are fetching data from database and writing a file in linux system.
Where in space between the data in one of the columns get converted into ^I which is creating an issue.
Column data.
There should be 5 spaces in between(710060 123CH)
this space is getting converted like below when we open the file using cat -vet filename command.
To remove this special character, i used below command.
.
Above command is removing special char ^I but space between the data in the column is more than 5 as ^I is occurring at different positions.
could some one please guide me,how else the special char can be removed by retaining 5 spaces in between the data 710060 123CH
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by RudiC; 09-18-2016 at 01:39 PM..
Reason: Added CODE tags.
I have a special character in my file. It displays as a '#' sign but when I do this command I do not find the line.
fgrep 'G#ant' file1
I want to replace the special character with another value but I need to know what character it really is. Any ideas on how to replace this '#' value with... (3 Replies)
Hi All,
How to remove a box like special character which appears at the end of a string/line/record. I have no clue what this box like special character is. It is transparent square like box. This appears in a .DAT file at the end of header.
I'm to compare a value in header with a parameter.... (16 Replies)
Can any one plse help me writing shell script to removing some special character pattern (like / > -------, / > / > ------- etc....as shown below) from the text file ASAP.
/ > -------
<tag-normalization tag-name="EXECSERVPRODUCT" read-only="false" part="body">
... (3 Replies)
Hello ,
i have a text file like this :
A123 c12AB c32DD aaaa
B123 23DS 12QW bbbb
C123 2GR 3RG cccccc
i want to remove the numbers from second and third column only.
i tried this :
perl -pe 's///g' file.txt > newfile.txt
but it will remove the number from... (7 Replies)
Hello
I've searched here and on the 'net for examples of a script or command line function that will remove the $ character from all file names only that can be done within the directory that contains the file names - which are all html files.
ie, I have a directory that contains html files... (6 Replies)
Greetings,
We have a requirement where we need to loop in a fixed width file in linux and remove a character based on a position for every record. It would highly appreciate if someone can help to automate this.
Appreciate your time and help!
Regards (3 Replies)
Hello
I have this special caracter after retreving rows from sql server:
"....spasses: • Entrem al valort 6050108002811 • El donem..."
I would like a sed command to remove it..or just know it's ascii code in order to replace it into my sql sentence.. Hope some one knows how to do that.... (7 Replies)
Hi Folks,
I have a huge data of the below format
abc #apple 1200 06/23
ghj #orange 1500 06/27
uyt #banana 2300 05/13
efg #vegetable 0700 04/16
After first 3 letters, i have 9 spaces and after fruit there are no specific fixed space, but it varies... (4 Replies)
Hi There,
I have one requirement to remove word after character "/".
Input file is
2017-07-12|02|user1l|domain1/userl|0
2017-07-12|02|user2|domain1/user2|5
2017-07-12|02|user3|domain2/user3|0
2017-07-12|02|user4|domain1/user4|432
and require OP file is
... (2 Replies)
Hi all.
I want to use sed to remove a word that ends with "!" in the first page of a file. The word I want to remove is: "DNA!".
I have search for an answer and nothing of what I found helped me.
~faizlo (2 Replies)
Discussion started by: faizlo
2 Replies
LEARN ABOUT HPUX
convertfs_hfs
convertfs(1M)convertfs(1M)NAME
convertfs - convert an HFS file system to allow long file names
SYNOPSIS
[special-file]
DESCRIPTION
The command converts an existing HFS file system supporting the default maximum file name length of 14 characters into one that supports
file names up to 255 characters long. Once an HFS file system is converted to long file names, it cannot be restored to its original
state, since the longer file names require a directory representation that is incompatible with the default HFS directory format. Since
this is an irreversible operation, prompts for verification before it performs a conversion.
forces the system to reboot if the root file system is converted. When converting the root file system, the system should be in single-
user mode, with all unnecessary processes terminated and all non-root file systems unmounted. Except for the root file system, requires
that the file system to be converted be unmounted.
If invoked without arguments, interactively prompts the user with a list of the HFS file systems from One or more or all of the listed file
systems can be selected for conversion. Typically, it is desirable to convert all of the file systems in to avoid inconsistencies between
two file systems mounted on the same system.
can also be invoked with an argument of either a block or character special-file name for a file system to be converted. Only the block
special file should be specified for a mounted root file system.
As part of the conversion process, performs an on each file system (see fsck(1M)).
Options
Do it quietly.
will perform the conversions without querying the user. Normally prompts the user before converting a file system.
RETURN VALUE
returns the following values:
Success.
Either successfully converted the file system, or the file system already allowed long file names.
Failure.
was not able to convert the file system due to some failure in processing.
AUTHOR
was developed by HP.
FILES
Default list of file systems to check.
SEE ALSO fsck(1M), mkfs(1M), newfs(1M), fstab(4).
convertfs(1M)