Sponsored Content
Full Discussion: substitute (')
Top Forums UNIX for Dummies Questions & Answers substitute (') Post 302550129 by cosmologist on Wednesday 24th of August 2011 06:39:26 PM
Old 08-24-2011
substitute (')

I usually use :

Code:
awk '{gsub(/xxx/,"yyy");print}'
to substitute xxx with yyy.

I have a problem substitute an expression like

Code:
x ' y
Because of the ( ' )

Any idea on how to get over this problem?

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Substitute in vi

I know in vi you can do :%s/replaceme/withthis/ but if i want to find all lines say without a # at the begining and I want to put it in how would that command be formatted? I can't figure it out for the life of me. #comment blah1 hey1 grrr1 #comment #blah1 #hey1 #grrr1 (5 Replies)
Discussion started by: kingdbag
5 Replies

2. UNIX for Dummies Questions & Answers

Substitute Variable

Can anyone tell me what is the purpose of a substitute variable in the unix programming language and give an example where it may be used? Thanks! (0 Replies)
Discussion started by: mmg2711
0 Replies

3. UNIX for Dummies Questions & Answers

rm substitute with blacklist

hi! first i want to apologize for two things. my English and (possible) posting in the wrong sub forum (i couldn't find one that fits my question) I am needing a script that can substitute rm. the idea is that the operator can/must delete some folders and files from time to time, when the free... (2 Replies)
Discussion started by: broli
2 Replies

4. Shell Programming and Scripting

In Help, Substitute Text ...

i'm writing a script that will extract and substitute a certain part of a data. i'm having trouble with the substituting part ... Here's my data looks like: 01/01/08-001-23:46:18-01/01/08-23:50:43 01/01/08-003-23:45:19-01/01/08-23:55:49 01/01/08-005-23:52:18-01/01/08-23:58:52 i want to... (6 Replies)
Discussion started by: solidhelix08
6 Replies

5. Shell Programming and Scripting

How to substitute?

Hi, I have query terms like this: a) apple bannana b) apple bannana AND chickko c) "milk shake" OR Graphes orange whereever there is space substitue with AND operator. I tried like this: (2 Replies)
Discussion started by: vanitham
2 Replies

6. UNIX for Dummies Questions & Answers

substitute file name

correct file names are: *_0.txt *_1.txt incorrect file names are: *_12.txt *_0123.txt *_04321.txt all files that are incorrect need to replace the ending with *_1.txt therefore need to create a loop to find the wrong files in a dir ->that dont end in _1.txt or _0.txt and then... (3 Replies)
Discussion started by: sigh2010
3 Replies

7. Shell Programming and Scripting

vi substitute

My question is how would I substitute for ceratain number of occurences in a line? If this is my input rjohns BFSTDBS01 Standard Silver NPRO30DINCR 2 Client Is it possible to change the first 3 occurences of space " " to a comma? (7 Replies)
Discussion started by: reggiej
7 Replies

8. UNIX for Dummies Questions & Answers

Substitute in VI

Hi there, i am updating a file on UNIX and have many lines as per below : listen:x:37:4:Network Admin:/usr/net/nls: i would like to substitute from the :/usr to the end of the line. so at the moment im using this : :s/"\/$/ /g but i get an error.can anyone help? thank you (3 Replies)
Discussion started by: brian112
3 Replies

9. Shell Programming and Scripting

Grep and substitute?

I have to parse ASCII files, output the relevant data to a comma-delimited file and load it into a database table. The specs for the file format have been recently updated and one section is causing problems. This is the original layout for that section. ... (2 Replies)
Discussion started by: alan
2 Replies

10. How to Post in the The UNIX and Linux Forums

Prstat substitute

Hello All, I have a shell script where with the lines below: echo "${v_sd_dateTime},${RUN_QUEUE_SIZE},${LOAD_AVERAGE},${v_sd_load_list},${v_sd_thread_count_list}" >> ${v_sd_file} Format of the output : 01/05/2005 08:00:00, RUN_QUEUE_SIZE, LOAD_AVG, CPU_PROD1, CPU_PROD2, THREADS_PROD1,... (1 Reply)
Discussion started by: Supriya_84
1 Replies
iconv_zh_TW(5)							File Formats Manual						    iconv_zh_TW(5)

NAME
iconv_zh_TW - code set conversion tables in traditional Chinese (zh_TW) locale AVAILABILITY
SUNWhleu DESCRIPTION
The following code set conversions are supported: Code Set Conversions Supported Code Symbol TargetCode Symbol CNS 11643 zh_TW-euc Big-5 zh_TW-big5 CNS 11643 zh_TW-euc ISO 2022-7 zh_TW-iso2022-7 CNS 11643 zh_TW-euc UTF-8 UTF-8 CNS 11643 zh_TW-euc IS0 2022-CN-EXT zh_TW-iso2022-CN-EXT Big-5 zh_TW-big5 CNS 11643 zh_TW-euc Big-5 zh_TW-big5 ISO 2022-7 zh_TW-iso2022-7 Big-5 zh_TW-big5 IS0 2022-CN-EXT zh_TW-is02022-CN-EXT Big-5 zh_TW-big5 UTF-8 UTF-8 ISO 2022-7 zh_TW-iso2022-7 CNS 11643 zh_TW-euc ISO 2022-7 zh_TW-iso2022-7 Big-5 zh_TW-big5 IS0 2022-7 zh_TW-iso2022-7 UTF-8 UTF-8 IS0 2022-CN-EXT zh_TW-iso2022-CN-EXT CNS 11643 zh_TW-euc IS0 2022-CN-EXT zh_TW-iso2022-CN-EXT Big-5 zh_TW-big5 Code Page 937 zh_TW-cp937 UTF-8 UTF-8 BIG5HK zh_HK-big5hk UTF-8 UTF-8 Big-5p zh_TW-big5p UTF-8 UTF-8 UTF-8 UTF-8 CNS 11643 zh_TW-euc UTF-8 UTF-8 IS0 2022-7 zh_TW-iso2022-7 UTF-8 UTF-8 Big-5 Big-5 UTF-8 UTF-8 Code Page 937 zh_TW-cp937 UTF-8 UTF-8 BIG5HK zh_HK-big5hk UTF-8 UTF-8 Big-5p zh_TW-big5p Conversions are performed as described below. For all conversions, if the source code set includes characters not included in the target code set, conversion and output for all such characters will be done using a substitute characters. zh_TW-euc to UTF-8 and UTF-8 to zh_TW-euc Conversion modules are provided to convert CNS 11643 plane 1, 2 and 3 characters between EUC-TW and UTF-8 encodings. If input data which does not belong to the above charset is encountered, it will be replaced with the substitute character (zh_TW-euc: '??' (0x3f3f), UTF-8: U+FFFD (0xefbfbd)). zh_TW-euc to zh_TW-big5 and zh_TW-big5 to zh_TW-euc Conversion modules can be used to convert CNS 11643 plane 1 and 2 characters between EUC-TW and BIG5 encodings. If input data which does not belong to the above charset is encountered, it will be replaced with the subsitute character (zh_TW-euc: '__' (0x5f5f), zh_TW-big5: '__' (0x5f5f)). Note that the seven additional popular characters from ETen extension have been supported, they belong to CNS 11643 plane 3. zh_TW-euc to zh_TW-iso2022-7 and zh_TW-iso2022-7 to zh_TW-euc Conversion modules can be used to convert CNS 11643 characters between EUC-TW and ISO-2022-7 encodings. zh_TW-euc to zh_TW-iso2022-CN-EXT and zh_TW-iso2022-CN-EXT to zh_TW-euc Conversion modules can be used to convert GB 2312-80, CNS 11643 plane 1, 2, 3, 4, 5, 6 and 7 characters between EUC-TW and IS0-2022-CN-EXT encodings. zh_TW-big5 to UTF-8 and UTF-8 to zh_TW-big5 Conversion modules are provided to convert Big-5 characters between BIG5 and UTF-8 encodings. If input data which does not belong to the above charset is encountered, it will be replaced with the substitute character (zh_TW-big5: '??' (0x3f3f), UTF-8: U+FFFD (0xefbfbd)). Note that the seven additional popular characters from ETen extension have been supported, they are 0xf9d6 -- 0xf9dc. zh_TW-big5 to zh_TW-iso2022-7 and zh_TW-iso2022-7 to zh_TW-big5 Conversion modules can be used to convert Big-5 characters between BIG5 and ISO-2022-7 encodings. If input Big-5 data which does not have corresponding CNS 11643 character is encountered, it will be replaced with the substitute character (zh_TW-iso2022-7: '__' (0x5f5f)). zh_TW-big5 to zh_TW-iso2022-CN-EXT and zh_TW-iso2022-CN-EXT to zh_TW-big5 Conversion modules are provided to convert Big-5 characters between BIG5 and ISO-2022-CN-EXT encodings. If input Big-5 data which does not have corresponding CNS 11643 character is encountered, it will be replaced with the substitute character (zh_TW-iso2022-7: '__' (0x5f5f)). zh_TW-big5p to UTF-8 and UTF-8 to zh_TW-big5p Conversion modules can be used to convert Big-5p characters between BIG5+ and UTF-8 encodings. If input data which doesn't belong to the above charset is encountered, it will be replaced with the substitute character (zh_TW-big5p: '??' (0x3f3f), UTF-8: U+FFFD). zh_HK-big5hk to UTF-8 and UTF-8 to zh_HK-big5hk Conversion modules can be used to convert HKSCS and Big-5 characters between BIG5HK and UTF-8 encoding. If input data which does not belong to the above charsets is encountered, it will be replaced with the substitute character (zh_HK-big5hk: '??' (0x3f3f), UTF-8: U+FFFD). zh_TW-cp937 to UTF-8 and UTF-8 to zh_TW-cp937 Conversion modules are provided to convert CNS 11643 characters between IBM Code Page 937 and UTF-8 encodings. zh_TW-iso2022-7 to UTF-8 and UTF-8 to zh_TW-iso2022-7 Conversion modules can be used to convert CNS 11643 characters between ISO-2022-7 and UTF-8 encodings. SEE ALSO
iconv(1), iconv(3), iconv(5), iconv_zh(5) 2 Nov 2001 iconv_zh_TW(5)
All times are GMT -4. The time now is 02:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy