10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi -
I have below in put to demo.txt
/test/xyz/ibcdownload.jsp
/test/xyz/pvxprogramtreeovermain.jsp
/test/xyz/jtfrsrsr$HtmlTag.jsp
/test/xyz/csdronumlov.jsp
/test/xyz/iecvaluereset.jsp
/test/xyz/ibecumpassignrole.jsp
/test/xyz/ozfoffermarketmain.jsp
output should be... (4 Replies)
Discussion started by: oraclermanpt
4 Replies
2. Shell Programming and Scripting
I am trying to develop a script which will work on a source UTF-8 file and perform one or more of the following
It will accept the target encoding as an argument e.g. US-ASCII or ISO-8859-1, etc
1. It should replace all occurrences of characters outside target character set by " " (space) or... (3 Replies)
Discussion started by: hemkiran.s
3 Replies
3. Linux
Hi,
I have tried to convert a UTF-8 file to windows UTF-16 format file as below from unix machine
unix2dos < testing.txt | iconv -f UTF-8 -t UTF-16 > out.txt
and i am getting some chinese characters as below which l opened the converted file on windows machine.
LANG=en_US.UTF-8... (3 Replies)
Discussion started by: phanidhar6039
3 Replies
4. Shell Programming and Scripting
i need to replace the any special characters with escape characters like below.
test!=123-> test\!\=123
!@#$%^&*()-= to be replaced by
\!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Discussion started by: laknar
8 Replies
5. Shell Programming and Scripting
Hi,
I have a file which includes some French Characters and I want to change them to other characters like
À to À
 to Â
É to É
.....
.....
and so on.
I am tyring to use tr command like
tr ÀÂÉ ÀÂÉ < input file
But it does not work. Only... (2 Replies)
Discussion started by: naveed
2 Replies
6. Shell Programming and Scripting
I've got a file (numbers.txt) filled with numbers and I want to replace each one of those numbers with a new random number between 0 and 9. This is my script so far:
#!/bin/bash
rand=$(($RANDOM % 9))
sed -i s//$rand/g numbers.txtThe problem that I have is that it replaces each number with just... (2 Replies)
Discussion started by: hellocatfood
2 Replies
7. HP-UX
Hi all,
We are facing the following problem in our HP-UX machine: software that manipulates utf-8 encoded strings (e.g. during string cut), fails to correctly manipulate strings (all containing Greek characters) that contain special characters like @, &, # etc. Actually, in different... (3 Replies)
Discussion started by: alina
3 Replies
8. Shell Programming and Scripting
Hi,
I have a flat file with header with tab delimiter.
nbr id name salesid detail num source num jun_2007 jul_2007 aug_2007 sep_2007 ....feb_2008
I need to modify the header for the columns
nbr to Id1
jun_2007 to Jun07
jul_2007 to Jul07
aug_2007 to Aug07
sep_2007 to Sep07... (3 Replies)
Discussion started by: umathurumella
3 Replies
9. Shell Programming and Scripting
Hi
I have searched for a way to replace odd characters in a FOLDER NAME. All search-and-replace issues I have seen, only involves how to make search-and-replace on a FILE och with TEXT INSIDE a FILE. My problem is with the FOLDER NAME.
My case is this:
I have a couple of persons that every... (5 Replies)
Discussion started by: arndorff
5 Replies
10. UNIX for Dummies Questions & Answers
In a file, How do I replace a set number of characters in each line?
For example.... substitute the first 54 characters of each line with mv?
Thanks!
Lisa (8 Replies)
Discussion started by: lgardner17325
8 Replies