Hi guys, I'm having a issue with a windows file from, at first the file is readed like one big and extense line and the famous "Ctrl+V Ctrl+R" or "^M return carriage"... fixed with:
before, the file assembly the columns... fixed too:
Here the ".{11}" is the positional new field separator.
But.. I'm not so good with locale and chartset in aix (is cuckoo for my... sometimes )
my question this:
mi file contains latin1 characteres, like "ñ, é, ü, etc" im looked for iconv but doesnt work for me at moment, i tried next lines:
Knowing the charset charset=iso-8859-1 moving the file to ubuntu and running "file -i".
but.. nothing
then
Neither...
I tried with an ubuntu distro and the results are seems... So, ayone has had this problem before? i did browse the entire network today and the answer are allways with iconv or vim, but vim doesn't have ":set filesetting" or ":set codesetting"
Well, wen i make de iconv with before parameters the file maintain unreconozing the latin characters as before i explain. instead show "nuñez" it shows "nu#ez". The procedure iconv doesn't return error, but the convertion is not maked
Try the dos2unix tool. UNIX end of lines are different than DOS. Also try strings to eliminate other non-printable characters. You can also use the tr -d command or sed -e...as in...unix to dos essentially does something like
Dos to unix does something like...
or
Hi blackrageous, thanks for your answer, unfortunable the file is not changeable because in the middle the file come with a special treatment and this treatment is not revealed, so imposible solution.
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Hello,
I would like to change my setting in a file to the setting that user input.
For example, by default it is
ONBOOT=ON
When user key in "YES", it would be
ONBOOT=YES
--------------
This code only adds in the entire user input, but didn't replace it.
How do i go about... (5 Replies)
Hi ,
I need to count the number of errors associated with the two words occurring in the file. It's about counting the occurrences of the word "error" for where is the word "index.js". As such the command should look like. Please kindly help. I was trying: grep "error" log.txt | wc -l (1 Reply)
Hi All,
Following are the problems i am facing.Resolution for these would be highly commendable:
a)I am trying to transfer files from my local C: directory to unix server using sftp.
The problem is coming when files with accent characters are picked for transfer.These files are not... (6 Replies)
Dear all,
I am working with names and I have a large file of names in which some words are written together (upto 4 or 5) and their corresponding single forms are also present in the word-list.
An example would make this clear
annamarie
mariechristine
johnsmith
johnjoseph smith
john
smith... (8 Replies)
Hello All
hope all fine,
I have a question about spanish accents...
I have in a redhat server, a lot of files with Ñ or Ú accent into the NAME of the file.
So my question is: Is it possible to change this name but with a script...to change all the occurence in one shot.
Exemple:
cd... (2 Replies)
Hello,
I have a complex problem. I have a file in which words have been joined together:
Theboy ranslowly
I want to be able to correctly split the words using a lookup file in which all the words occur:
the
boy
ran
slowly
slow
put
child
ly
The lookup file which is meant for look up... (21 Replies)
Hello All
in a text file I have to replace some numeric code by a string.
This is an exemple of the file:
000000001 LDR L ^^^^^nam^^2200169Ia^45e0
000000001 008 L 100604s9999^^^^xx^^^^^^^^^^^^000^0^und^d
000000001 022 L $$a0365-6675
000000001 090 L $$aBMA 1934-1937.
000000001 245... (1 Reply)
Hi everyone !
I'd like to write a unix command for correcting all european accent errors in a document (spanish, german, french, danisch, etc )!
i need to do this for correcting my document :
sed -e 's/%2B/\ /g' -e 's/%25C9/É/g' doc1 > doc2
The first command is ok and change "%2B" into... (3 Replies)