Homework and Emergencies Emergency UNIX and Linux Support Find, replace, file path in multiple files for Solaris 10 Post 302515978 by LRoberts on Thursday 21st of April 2011 09:27:49 AM
That did the trick. Thank you! Big help.
 
Test Your Knowledge in Computers #983
Difficulty: Medium
The first official NetBSD release, NetBSD 0.1, was made on 9 April 1991.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find and replace files in multiple folders

Hi there, I would like to write a script to automate the copy and renaming of files in multiple dir. I have a generic file named s253e.prb and would like to copy this to multiple dir and rename it. Example: Dir is AL-M1 and the prb file name is AL-M1.prb. I would like to be able to... (6 Replies)
Discussion started by: lodey
6 Replies

2. UNIX for Dummies Questions & Answers

Find and replace a string in multiple files

I used the following script cd pathname for y in `ls *`; do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y; done and it worked fine for finding and replacing strings with names etc. in all files of the given path. I'm trying to replace a string which consists of path (location of file) ... (2 Replies)
Discussion started by: pharos467
2 Replies

3. Shell Programming and Scripting

awk find and replace in multiple files

Hi I use the following code to replace . with N in my files and keep both versions. awk '{ gsub(/\./,"N"); print }' file_0001.txt > path/to/new/dir/file_0001.txt I need help on how to apply the code to 100 files instead of doing them one file at a time. The files are labeled... (7 Replies)
Discussion started by: jdhahbi
7 Replies

4. Shell Programming and Scripting

Find and replace string from file which contains variable and path - SH

e.g. /home/$USER/.config replace it with "" (empty) Is this possible? I think you should play a bit with sharps ## and sed:b: (2 Replies)
Discussion started by: hakermania
2 Replies

5. UNIX for Dummies Questions & Answers

how to find and replace strings in multiple files

Hi All, Iam new to unix, I need to find string and replace it in the file name. Like text_123_0.txt,text_123_1.txt,text_123_2.txt. I need to search 123 and replace it with 234 . Is there any unix command to replace them in single command since i have 5 directories. So i need to go each and every... (0 Replies)
Discussion started by: etldeveloper
0 Replies

6. UNIX for Advanced & Expert Users

linux find and replace in multiple files

Is there a reason why all of these examples of linux find and replace in multiple files use find and grep to pipe into sed or perl. Why not just use sed or perl directly with something like this? sed -i 's/echo/burnbaby/g' booboo*... (2 Replies)
Discussion started by: cokedude
2 Replies

7. Shell Programming and Scripting

Script to find & replace a multiple lines string across multiple php files and subdirectories

Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ? The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories. So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Discussion started by: spfc_dmt
12 Replies

8. Shell Programming and Scripting

Find and replace in multiple files

Hi, I have php files in main dir and sub dir's as well. I need to find "new mysqli('localhost', 'System', 'xxxxxx', 'System', '3306');" and replace as "new mysqli('localhost', 'unx_sys', 'yyyy', 'unx_sys', '3306');" I tried like: sed 's/new mysqli\(*\)\;$/new... (1 Reply)
Discussion started by: ashokvpp
1 Replies

9. Shell Programming and Scripting

Find and replace the path value in files, pattern is not full known.

Hi, I need to do find and replace, but the pattern is not full known. for example, my file has /proj/app-d1/sun or /data/site-d1/conf here app-d1 and site-d1 is not constant. It may be different in different files. common part is /proj/xx/sun and /data/xxx/conf i want to find where ever... (6 Replies)
Discussion started by: rbalaj16
6 Replies

10. UNIX for Beginners Questions & Answers

Find and replace from multiple files

Hello everybody, I need your help. I have a php site that was expoited, the hacker has injected into many php files a phishing code that was discovered and removed in order to have again a clean code. Now we need to remove from many php files that malware. I need to create a script that find and... (2 Replies)
Discussion started by: ninocap
2 Replies
big5(5) 							File Formats Manual							   big5(5)

NAME
big5 - A character encoding system (codeset) for Traditional Chinese DESCRIPTION
The big5 codeset is one of several codesets that support the Traditional Chinese language. This codeset includes the following character sets: ASCII Big-5 The big5 codeset uses a combination of single-byte data and two-byte data to represent ASCII characters, symbols, and Chinese ideographic characters. ASCII Characters All ASCII characters are represented in the form of single-byte, 7-bit data in the big5 codeset; that is, the most significant bit (MSB) of a byte that represents an ASCII character is always set off. For more information, see ascii(5). Big-5 Character Groups The Big-5 character set defines the following character groups: Special symbols (408) Level 1 characters (5401) Level 2 characters (7652) Level 1 user-defined space (785) Level 2 user-defined space (2983) Level 3 user-defined space (2041) Code Values for Big-5 Characters Each Big-5 character is represented by a two-byte code that compiles according to the Big-5 standard. The MSB of the first byte is always set on while that of the second byte can be on or off. Code ranges for characters in the different character groups are as follows: Special symbols: A140 to A3BF Level 1 characters: A440 to C67E Level 2 characters: C940 to F9D5 Level 1 user-defined space: FA40 to FEFE Level 2 user-defined space: 8E40 to A0FE Level 3 user-defined space: 8140 to 8DFE In this space, the valid code range for the first byte is 81 to FE, while that for the second byte is 40 to 7E and A1 to FE. Codeset Conversion The following codeset converter pairs are available for converting Traditional Chinese characters between big5 and other encoding formats. Refer to iconv_intro(5) for an introduction to codeset conversion. For more information about the other codeset for which big5 is the input or output, see the reference page specified in the list item. dechanyu_big5, big5_dechanyu Converting from and to DEC Hanyu: dechanyu(5) dechanzi_big5, big5_dechanzi Converting from and to DEC Hanzi: dechanzi(5) eucTW_big5, big5_eucTW Converting from and to Taiwanese Extended UNIX Code: eucTW(5) sbig5_big5, big5_sbig5 Converting from and to Shift Big-5: sbig5(5) telecode_big5, big5_telecode Converting from and to Telecode: telecode(5) UCS-2_big5, big5_UCS-2 Converting from and to UCS-2: Unicode(5) UCS-4_big5, big5_UCS-4 Converting from and to UCS-4: Unicode(5) UTF-8_big5, big5_UTF-8 Converting from and to UTF-8: Unicode(5) Note The big5 encoding format is identical to the encoding format used in PC code pages that support Traditional Chinese. Therefore, you can use codeset converters that convert between big5 and UCS-2, UCS-4, or UTF-8 to convert Traditional Chinese data between PC code-page and Uni- code encoding formats. Refer to code_page(5) for a discussion of how the operating system supports PC code pages. Fonts for Big-5 Characters The operating system supports Big-5 code by internally converting characters to DEC Hanyu. Therefore, DEC Hanyu fonts are used for Big-5 characters. Both display and printer fonts are provided for DEC Hanyu and these are listed in the dechanyu(5) reference page. For general information about printer support for and codeset conversion of Asian text, refer to i18n_printing(5). SEE ALSO
Commands: locale(1) Others: ascii(5), Chinese(5), code_page(5), dechanyu(5), dechanzi(5), eucTW(5), GBK(5), i18n_intro(5), i18n_printing(5), iconv_intro(5), l10n_intro(5), sbig5(5), telecode(5), Unicode(5) big5(5)

Featured Tech Videos

All times are GMT -4. The time now is 05:11 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy