Sponsored Content
Top Forums Shell Programming and Scripting How can I append a string at the end of a line in a file Post 302299981 by daptal on Sunday 22nd of March 2009 06:54:49 PM
Old 03-22-2009
sed "s/research:x:206*/&${added_string}/" group

Try this,

cheers
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Append text at end of the first line in a file

Hi I need to append some text @ end of the first line in a file. like myfile.txt list = a,b,c list.a=some.. I give the arg "d" . now it append at end of first line list=a,b,c,d list.a=some... Please help me out this (7 Replies)
Discussion started by: catgovind
7 Replies

2. Shell Programming and Scripting

append a character at end of each line of a file

Hi, i want to append a character '|' at end of each line of a file abc.txt. for example if the file abc.txt conatins: a|b|c 1|2|33 w|2|11 i want result file xyz.txt a|b|c| 1|2|33| w|2|11| I know this is simple but sumhow i am not able to reach end of line. its urgent, thanks for... (4 Replies)
Discussion started by: muaz
4 Replies

3. Shell Programming and Scripting

Line Count and Append it to the end of the file.

Hi, I want to get a Line count of a file and append that at the end of the file. The Line count should not include the Headers : ------------------ COL1,COL2,COL3 123,abc,011 111,abd,0212 Record Count: 2 ------------------- Thanks. (7 Replies)
Discussion started by: smc3
7 Replies

4. UNIX for Dummies Questions & Answers

HOWTO Append String to End of Line

I have a comma delimited text file and need to appened ",000000" to the end of every line. For example: Before: "D700000","2006" ,"5000","Open Year" ,"Conversion" ,"Wk64","Productive Payroll $" ,1103.45 After: "D700000","2006" ,"5000","Open Year" ,"Conversion" ,"Wk64","Productive Payroll... (3 Replies)
Discussion started by: bggibson
3 Replies

5. Shell Programming and Scripting

Append a string at the end of every line in a file

Hi Friends, I have a file with many lines as shown below. /START SAMPLE LINE/ M:\mmarimut_v6.4.0_pit_01\java\build.xml@@\main\v6.4.0_pit_a M:\mmarimut_v6.4.0_pit_01\port\Post.java@@\main\v6.4.0_pit_a M:\mmarimut_v6.4.0_pit_01\switchview\View.java@@\main\v6.4.0_pit_a /END SAMPLE LINE/ I... (1 Reply)
Discussion started by: nmattam
1 Replies

6. Shell Programming and Scripting

Append the end of each line in a file with a given string

Hi friends, I have a file containing many lines as follows. M:\mmarimut_v6.4.0_pit_01\java\build.xml@@\main\v6.4.0_pit_a M:\mmarimut_v6.4.0_pit_01\ADBasicView.java@@\main\v6.4.0_pit_a I would like to append the string "\0" at the end of each line in the file. The output should look... (10 Replies)
Discussion started by: nmattam
10 Replies

7. Shell Programming and Scripting

Search for a string, then append character to end of that line only

I have 2 files that I am working with $ cat file1 server1 server3 server5 server6 server8 $ cat file2 server1;Solaris; server2; SLES; server3;Linux; server4; Solaris; server5;SLES; server6;SLES; server7;Solaris; server8;Linux; (1 Reply)
Discussion started by: snoman1
1 Replies

8. Shell Programming and Scripting

sed - Find a String and append a text end of the Line

Hi, I have a File, which have multiple rows. Like below 123456 Test1 FNAME JRW#$% PB MO Approver XXXXXX. YYYY 123457 Test2 FNAME JRW#$% PB MO Super XXXXXX. YYYY 123458 Test3 FNAME JRW#$% PB MO Approver XXXXXX. YYYY I want to search a line which contains PB MO Approver and append... (2 Replies)
Discussion started by: java2006
2 Replies

9. Shell Programming and Scripting

Append this string to end of each line

Platform: Solaris 10 I have a file like below $ cat languages.txt Spanish Norwegian English Persian German Portugese Chinese Korean Hindi Malayalam Bengali Italian Greek Arabic I want to append the string " is a great language" at end of each line in this file. (3 Replies)
Discussion started by: omega3
3 Replies

10. UNIX for Advanced & Expert Users

Help in adding a string at the end of each line and append files vertically

hi, i need a help in the script , need to append a string at the end of each line of a files , and append the files into a single file vertically. eg file1 has the following columns abc,def,aaa aaa,aa,aaa files 2 has the following rows and columns abc,def,aaa aaa,aa,aaa i... (3 Replies)
Discussion started by: senkerth
3 Replies
iconv_maz(5)						Standards, Environments, and Macros					      iconv_maz(5)

NAME
iconv_maz - code set conversion tables for Mazovia DESCRIPTION
The following code set conversions are supported: +--------------------------------------------------------------------+ | Code Set Conversions Supported | +--------------+--------+--------------+--------+--------------------+ | Code |Symbol |Target Code |Symbol | Target | +--------------+--------+--------------+--------+--------------------+ |Output | | | | | +--------------+--------+--------------+--------+--------------------+ |Mazovia |maz |ISO 8859-2 |iso2 | ISO Latin 2 | +--------------+--------+--------------+--------+--------------------+ |Mazovia |maz |MS 1250 |win2 | Windows Latin 2 | +--------------+--------+--------------+--------+--------------------+ |Mazovia |maz |MS 852 |dos2 | MS-DOS Latin 2 | +--------------+--------+--------------+--------+--------------------+ |Mazovia |maz |DHN |dhn | Dom Hanlowy Nauki | +--------------+--------+--------------+--------+--------------------+ CONVERSIONS
The conversions are performed according to the following tables. All values in the tables are given in octal. Mazovia to ISO 8859-2 For the conversion of Mazovia to ISO 8859-2, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | Mazovia | ISO 8859-2 | Mazovia | ISO 8859-2 | |24-177 | 40 |230 |246 | |200 | 307 |231 |326 | |201 | 374 |232 |334 | |202 | 351 |233 |40 | |203 | 342 |234 |243 | |204 | 344 |235 |40 | |205 | 40 |236 |266 | |206 | 261 |237 |40 | |207 | 347 |240 |254 | |210 | 40 |241 |257 | |211 | 353 |242 |363 | |212-213 | 40 |243 |323 | |214 | 356 |244 |361 | |215 | 346 |245 |321 | |216 | 304 |246 |274 | |217 | 241 |247 |277 | |220 | 312 |250-340 |40 | |221 | 352 |341 |337 | |222 | 263 |342-365 |40 | |223 | 364 |366 |367 | |224 | 366 |367 |40 | |225 | 306 |370 |260 | |226-227 | 40 |371-376 |40 | |256 | 201 | | | +---------------+----------------+----------------+---------------+ Mazovia to MS 1250 For the conversion of Mazovia to MS 1250, all characters not in the following table are mapped unchanged. +---------------+----------------+----------------+---------------+ | Mazovia | MS 1250 | Mazovia | MS 1250 | |200 | 307 |236 |234 | |201 | 374 |237 |40 | |202 | 351 |240 |217 | |203 | 342 |241 |257 | |204 | 344 |242 |363 | |205 | 40 |243 |323 | |206 | 271 |244 |361 | |207 | 347 |245 |321 | |210 | 40 |246 |237 | |211 | 353 |247 |277 | |212-213 | 40 |250-251 |40 | |214 | 356 |252 |254 | |215 | 346 |253-255 |40 | |216 | 304 |256 |253 | |217 | 245 |257 |273 | |220 | 312 |260-340 |40 | |221 | 352 |341 |337 | |222 | 263 |342-345 |40 | |223 | 364 |346 |265 | |224 | 366 |347-360 |40 | |225 | 306 |361 |261 | |226-227 | 40 |362-365 |0 | |230 | 214 |366 |367 | |231 | 326 |367 |40 | |232 | 334 |370 |260 | |233 | 40 |371 |40 | |234 | 243 |372 |267 | |235 | 40 |373-376 |40 | |274 | 212 | | | +---------------+----------------+----------------+---------------+ Mazovia to MS 852 For the conversion of Mazovia to MS 852, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | Mazovia | MS 852 | Mazovia | MS 852 | |205 | 40 |234 |235 | |206 | 245 |235 |40 | |210-213 | 40 |236 |230 | |215 | 206 |237 |40 | |217 | 244 |240 |215 | |220 | 250 |241 |275 | |221 | 251 |243 |340 | |222 | 210 |244 |344 | |225 | 217 |245 |343 | |226-227 | 40 |246 |253 | |230 | 227 |247 |276 | |233 | 40 |250-375 |40 | |227 | 327 | | | +---------------+----------------+----------------+---------------+ Mazovia to DHN For the conversion of Mazovia to DHN, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | Mazovia | DHN | Mazovia | DHN | |200-205 | 40 |234 |203 | |206 | 211 |236 |217 | |207-214 | 40 |240 |207 | |215 | 212 |241 |210 | |216 | 40 |242 |216 | |217 | 200 |243 |205 | |220 | 202 |244 |215 | |221 | 214 |246 |220 | |225 | 201 |247 |221 | |230 | 206 | | | +---------------+----------------+----------------+---------------+ FILES
/usr/lib/iconv/*.so conversion modules /usr/lib/iconv/*.t conversion tables /usr/lib/iconv/iconv_data list of conversions supported by conversion tables SEE ALSO
iconv(1), iconv(3C), iconv(5) SunOS 5.10 18 Apr 1997 iconv_maz(5)
All times are GMT -4. The time now is 04:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy