Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Removing 2nd Column in Vi Editor Post 302699515 by muhnandap on Tuesday 11th of September 2012 11:13:56 PM
Old 09-12-2012
Removing 2nd Column in Vi Editor

I have text like this

M83-306 132 797
M83-312 145 685
M83-315 321 479
M83-319 654 193
M83-350 556 1184
M83-303 222 199

and I want to make it like this

M83-306 797
M83-312 685
M83-315 479
M83-319 193
M83-350 1184
M83-303 199

what command in vi editor that can make it happen
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Removing columns of a file using vi Editor

Hi Experts, I have a file which looks like in this way 1 2233|A.K Shukla |G.M |Sales |12/12/52|6000 2 9876|Jai Sharma |Director |Production |12/03/50|67000 3 5678|Sumit Chakarborty |D.G.M |Marketing |19/04/43|6000 4 2365|Barun... (2 Replies)
Discussion started by: DilipPanda
2 Replies

2. Shell Programming and Scripting

VI editor,column postion

In VI editor ctrl + g is used indicate the line number on which the cursor is placed...similarly is there a way to determine the column number of the cursor position..? (1 Reply)
Discussion started by: vijay_0209
1 Replies

3. Shell Programming and Scripting

Parse 1 column and add 2nd column

I'm racking my brain on this one! :( I have a list like this: Paul 20 Paul 25 Paul 30 Frank 10 Julie 15 Julie 13 etc, etc... I've been trying to figure out a way to have the output display the name in the first column ONCE and add the numbers in the second column and display that... (2 Replies)
Discussion started by: sdlennon
2 Replies

4. Shell Programming and Scripting

Vi editor, copy one column?

This is an vi editor question. I do not know is this a right place to ask this question or not? I have a file with the following contents, 10 11 20 21 30 31 I want to copy first column that is 10,20,30 after second column, so that output will look like the following, 10 11 10 20 21 20... (3 Replies)
Discussion started by: MeetP
3 Replies

5. Shell Programming and Scripting

comparing column of two different files and print the column from in order of 2nd file

Hi friends, My file is like: Second file is : I need to print the rows present in file one, but in order present in second file....I used while read gh;do awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile done < secondfile but the output I am... (14 Replies)
Discussion started by: CAch
14 Replies

6. UNIX for Dummies Questions & Answers

Swapping column in vi editor

is there any command in vi editor to turn this 986.000 4.026.000 775.328.625 9.319.003.000 986.000 4.036.000 775.328.625 9.318.803.000 986.000 4.046.000 775.328.625 9.318.603.000 986.000 4.056.000 775.328.625 9.318.403.000 become this... (5 Replies)
Discussion started by: muhnandap
5 Replies

7. Shell Programming and Scripting

Calculate 2nd Column Based on 1st Column

Dear All, I have input file like this. input.txt CE2_12-15 3950.00 589221.0 9849709.0 768.0 CE2_12_2012 CE2_12-15 3949.00 589199.0 9849721.0 768.0 CE2_12_2012 CE2_12-15 3948.00 589178.0 9849734.0 768.0 CE2_12_2012 CE2_12-52 1157.00 ... (3 Replies)
Discussion started by: attila
3 Replies

8. Shell Programming and Scripting

Transpose from 2nd column till the last column

Hi I have 5 columns like this a b c d e f g h i j k l m n o From 2nd column till the 5th column of every record, I would like to transpose them as rows, so my output file contains only one row a b c d e f g h i j (9 Replies)
Discussion started by: jacobs.smith
9 Replies

9. UNIX for Dummies Questions & Answers

Remove a column using vi editor

How do i remove a column using vi editor Assuming the file to be of format 1: 010 0xad45 sp1 - 11:29:51.498583949 500249144 Event1 rst bcfe jhv rgc 456: 010 0xadb sp2 - 11:29:51.498600605 4464 Event0abcrd adabc aasd 45: 010 0x10 sp0 - 11:29:51.498614165 13560 Back adxca... (6 Replies)
Discussion started by: sp0
6 Replies

10. Shell Programming and Scripting

How to use regex on particular column (Removing comma from particular column)?

Hi, I have pipe separated file which contains some data having comma(,) in it. I want to remove the comma(,) only from particular column without changing data in other columns. Below is the sample data file, I want to remove the comma(,) only from 5th column. $ cat file1 ABC | DEF, HIJ|... (6 Replies)
Discussion started by: Prathmesh
6 Replies
iconv_8859-1(5) 					Standards, Environments, and Macros					   iconv_8859-1(5)

NAME
iconv_8859-1 - code set conversion tables for ISO 8859-1 (Latin 1) DESCRIPTION
The following code set conversions are supported: +--------------------------------------------------------------------+ | Code Set Conversions Supported | +--------------+--------+--------------+--------+--------------------+ | Code |Symbol |Target Code |Symbol | Target Output | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646 |646 | 7 bit ASCII | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646de |646de | German | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646da |646da | Danish | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646en |646en | English ASCII | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646es |646es | Spanish | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646fr |646fr | French | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646it |646it | Italian | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646sv |646sv | Swedish | +--------------+--------+--------------+--------+--------------------+ CONVERSIONS
The conversions are performed according to the following tables. All values in the tables are given in octal. ISO 8859-1 to ISO 646 (7-bit ASCII) For the conversion of ISO 8859-1 to ISO 646, all characters not in the following table are mapped unchanged. Converted to Underscore '_' (137) --------------------------------- 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 243 244 245 246 247 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 330 331 332 333 334 335 336 337 340 341 342 343 344 345 346 347 350 351 352 353 354 355 356 357 360 361 362 363 364 365 366 367 370 371 372 373 374 375 376 377 ISO 8859-1 to ISO 646de (GERMAN) For the conversion of ISO 8859-1 to ISO 646de, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646de | ISO 8859-1 | ISO 646de | |247 | 100 |337 |176 | |304 | 133 |344 |173 | |326 | 134 |366 |174 | |334 | 135 |374 |175 | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 100 133 134 135 173 174 175 176 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 243 244 245 246 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 327 330 331 332 333 335 336 337 340 341 342 343 345 346 347 350 351 352 353 354 355 356 357 360 361 362 363 364 365 367 370 371 372 373 375 376 377 ISO 8859-1 to ISO 646da (DANISH) For the conversion of ISO 8859-1 to ISO 646da, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | Conversions Performed | +---------------+----------------+----------------+---------------+ | ISO 8859-1 | ISO 646da | ISO 8859-1 | ISO | +---------------+----------------+----------------+---------------+ |646da | | | | +---------------+----------------+----------------+---------------+ |305 | 135 |345 |175 | +---------------+----------------+----------------+---------------+ |306 | 133 |346 |173 | +---------------+----------------+----------------+---------------+ |330 | 134 |370 |174 | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 133 134 135 173 174 175 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 243 244 245 246 247 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 331 332 333 334 335 336 337 340 341 342 343 344 347 350 351 352 353 354 355 356 357 360 361 362 363 364 365 366 367 371 372 373 374 376 377 ISO 8859-1 to ISO 646en (ENGLISH ASCII) For the conversion of ISO 8859-1 to ISO 646en, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------+ | Conversions Performed | +-----------------------------+-----------------------------+ | ISO 8859-1 | ISO 646en | +-----------------------------+-----------------------------+ |243 |043 | +-----------------------------+-----------------------------+ Converted to Underscore '_' (137) --------------------------------- 043 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 244 245 246 247 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 330 331 332 333 334 335 336 337 340 341 342 343 344 345 346 347 350 351 352 353 354 355 356 357 360 361 362 363 364 365 366 367 370 371 372 373 374 375 376 377 ISO 8859-1 to ISO 646fr (FRENCH) For the conversion of ISO 8859-1 to ISO 646fr, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646fr | ISO 8859-1 | ISO 646fr | |243 | 043 |347 |134 | |247 | 135 |350 |175 | |250 | 176 |351 |173 | |260 | 133 |371 |174 | |340 | 100 | | | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 043 100 133 134 135 173 174 175 176 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 244 245 246 251 252 253 254 255 256 257 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 330 331 332 333 334 335 336 337 341 342 343 344 345 346 352 353 354 355 356 357 360 361 362 363 364 365 366 367 370 372 373 374 375 376 377 ISO 8859-1 to ISO 646it (ITALIAN) For the conversion of ISO 8859-1 to ISO 646it, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646it | ISO 8859-1 | ISO 646it | |243 | 043 |350 |175 | |247 | 100 |351 |135 | |260 | 133 |354 |176 | |340 | 173 |362 |174 | |347 | 134 |371 |140 | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 043 100 133 134 135 173 174 175 176 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 244 245 246 250 251 252 253 254 255 256 257 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 330 331 332 333 334 335 336 337 341 342 343 344 345 346 352 353 354 355 356 357 360 361 362 363 364 365 366 367 370 372 373 374 375 376 377 ISO 8859-1 to ISO 646es (SPANISH) For the conversion of ISO 8859-1 to ISO 646es, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646es | ISO 8859-1 | ISO 646es | |241 | 133 |321 |134 | |247 | 100 |347 |175 | |260 | 173 |361 |174 | |277 | 135 | | | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 100 133 134 135 173 174 175 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 242 243 244 245 246 250 251 252 253 254 255 256 257 261 262 263 264 265 266 267 270 271 272 273 274 275 276 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 322 323 324 325 326 327 330 331 332 333 334 335 336 337 340 341 342 343 344 345 346 350 351 352 353 354 355 356 357 360 362 363 364 365 366 367 370 371 372 373 374 375 376 377 ISO 8859-1 to ISO 646sv (SWEDISH) For the conversion of ISO 8859-1 to ISO 646sv, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646sv | ISO 8859-1 | ISO 646sv | |304 | 133 |344 |173 | |305 | 135 |345 |175 | |311 | 100 |351 |140 | |326 | 134 |366 |174 | |334 | 136 |374 |176 | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 100 133 134 135 136 140 173 174 175 176 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 243 244 245 246 247 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 306 307 310 312 313 314 315 316 317 320 321 322 323 324 325 327 330 331 332 333 335 336 337 340 341 342 343 346 347 350 352 353 354 355 356 357 360 361 362 363 364 365 367 370 371 372 373 375 376 377 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 28 Apr 1997 iconv_8859-1(5)
All times are GMT -4. The time now is 12:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy