Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to copy a column of multiple files and paste into new excel file (next to column)? Post 303033985 by dineshkumarsrk on Tuesday 16th of April 2019 01:30:57 AM
Old 04-16-2019
Dear Don,
There is a minor issue with all those commands mentioned above. As I told, I have 30 excel files. among them few excel files have lesser rows than others. For example excel file 6 to 10 has only 2 rows, whereas other files has 3 rows as shown below.
Code:
org1_1	1	1	2.5	100
org1_2	1	2	5.5	98	
org1_3	1	3	7.2	88
.
.
.
org10_1	1	1	2.5	100
org10_2	2	5.5	98	98
.
.
.
org11_1	1	1	3.5	100
org11_2	1	2	8.5	77	
org11_3	1	3	7.2	88

When I execute above commands, it pasting 11th file first row along with 10th file 3rd row as given below,
Code:
org1_1	100 . . . . . org10_1	100		org11_2	77
org1_2	98  . . . . . org10_2	98		org11_3	88
org1_3	88  . . . . . 		org11_1	100

Sorry for the delayed response.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

paste each 10 lines of single column to several column

Hi, I need to paste each 10 lines of single column to several columns. Please, can anyone tell me how to write in awk? Input File: 22 34 36 12 17 19 15 11 89 99 56 38 29 (4 Replies)
Discussion started by: nica
4 Replies

2. Shell Programming and Scripting

Copy a column and paste to other file question

Please help me. This is simple, but urgent problem for me. :( I have a two files file1 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 ..... file2 11 12 13 14 15 11 12 13 14 15 11 12 13 14 15 ..... 1) I hope to make a new file, file 3, that consists of 2nd... (2 Replies)
Discussion started by: exsonic
2 Replies

3. UNIX for Advanced & Expert Users

Copy a column to another column in UNIX fixedwidth file

Hi All, I have a fixedwidth file of length 3000. Now i want to copy a column of 4 chars i.e( length 1678-1681) to column 1127 – 1171 to the same file. Please let me know how can i achive using a single command in fixed width file. Also source column length is 4 chars and target column length... (4 Replies)
Discussion started by: kiranparsha
4 Replies

4. UNIX for Dummies Questions & Answers

Paste column from one file as column of

Any shortcuts for doing this? I need to cut the column 4 values from File1 and paste them as column4 values of File2, but only for the (first) same number of lines as File1 . All rows in File1 are contained in File2 in the exact same order, so the cut paste should work. File1 (with header and 3... (4 Replies)
Discussion started by: senhia83
4 Replies

5. Shell Programming and Scripting

Problems with awk (fatal error) and paste (two variables into one column-by-column)

Hello, I have a script extracting columns of useful numbers from a data file, and manipulating the numbers with awk commands. I have problems with my script... 1. There are two lines assigning numbers to $BaseForAveraging. If I use the commented line (the first one) and let the second one... (9 Replies)
Discussion started by: vgbraymond
9 Replies

6. Shell Programming and Scripting

Paste columns based on common column: multiple files

Hi all, I've multiple files. In this case 5. Space separated columns. Each file has 12 columns. Each file has 300-400K lines. I want to get the output such that if a value in column 2 is present in all the files then get all the columns of that value and print it side by side. Desired output... (15 Replies)
Discussion started by: genome
15 Replies

7. Shell Programming and Scripting

Locate the files in the first column and copy the files in 2nd column

#cat data.txt file1 folder1 file2 thisforfile2 file3 thisfolderforfile3 lata4 folder4 step 1: create the folder first in column 2 for i in `awk '{print $2}' data.txt` do mkdir /home/data/$i done step 2: locate the files in column1 and stored them into a file for i in... (17 Replies)
Discussion started by: kenshinhimura
17 Replies

8. UNIX for Beginners Questions & Answers

How to insert data into black column( Secound Column ) in excel (.XLSX) file using shell script?

Source Code of the original script is down below please run the script and try to solve this problem this is my data and I want it column wise 2019-03-20 13:00:00:000 2019-03-20 15:00:00:000 1 Operating System LAB 0 1 1 1 1 1 1 1 1 1 0 1 (5 Replies)
Discussion started by: Shubham1182
5 Replies

9. UNIX for Beginners Questions & Answers

How to copy particular files from a multiple directories and paste in a new directory?

Dear all I have a multiple directories, say for example org1, org2, org3 ..... org100 and each directory having a file namely dnaG.fasta. I need to copy all the dnaG.fasta file from each directory and paste in another directory fastconcatg. Therefore, my script has to copy dnaG.fasta file from... (5 Replies)
Discussion started by: dineshkumarsrk
5 Replies

10. UNIX for Beginners Questions & Answers

Copy files if column 5 in a file contains ā€œVā€

I have number of csv files (like tmo_2019*). In these files some files have 5th column value as V. I want to copy those files having 5th column value as V to specific directory /test/V_files/. I tried to extract file names by below but not able to complete command for copy. find -type f -iname... (4 Replies)
Discussion started by: Bops
4 Replies
deckorean(5)							File Formats Manual						      deckorean(5)

NAME
deckorean - A character encoding system (codeset) for Korean DESCRIPTION
The DEC Korean (deckorean) codeset consists of the following character sets: ASCII KSC 5601-1987 For the symbols and ideographic characters defined in the KSC 5601-1987 character set, DEC Korean uses 2-byte data representation. For ASCII characters, DEC Korean uses single-byte 7-bit data representation; that is, the most significant bit (MSB) of the byte that repre- sents an ASCII character value is always set off. For more information on the ASCII character set, refer to ascii(5). KSC 5601-1987 Characters KSC 5601-1987 is a national standard that defines a primary set of graphic characters for Korean information interchange. The standard defines a character set with a total of 8224 characters that are arranged in a code table. The code table has 94 rows, numbered from 1 to 94. Each row has 94 columns, also numbered from 1 to 94. Different kinds of characters occupy different areas of the code table as follows: Special characters: 986 graphic symbols that reside in rows 1 to 12 Hangul characters: 2350 Korean (Hangul) characters that reside in rows 16 to 40 Hanja characters: 4888 Chinese characters that reside in rows 42 to 93 DEC Korean Encoding Values To differentiate KSC 5601-1987 codes from ASCII codes, the most significant bit (MSB) of both the first and the second byte of a KSC 5601 character value is always set on. The value of a KSC 5601 character can be determined from its row and column number as follows: 1st byte = A0 + Row number 2nd byte = A0 + Column number For example, if a character is positioned at the first column of the 36th row, its value is CA41, which is calulated as follows: 1st byte = A0(hex) + 36 = C4 (hex) 2nd byte = A0(hex) + 01 = A1 (hex) Codeset Conversion The following codeset converter pairs are available for converting Korean characters between deckorean and other encoding formats. Refer to iconv_intro(5) for an introduction to codeset conversion. For more information about the other codeset for which deckorean is the input or output, see the reference page specified in the list item. eucKR_deckorean, deckorean_eucKR Converting from and to Korean Extended UNIX Code: eucKR(5). UCS-2_deckorean, deckorean_UCS-2 Converting from and to UCS-2 format: Unicode(5). UCS-4_deckorean, deckorean_UCS-4 Converting from and to UCS-4 format: Unicode(5). UTF-8_deckorean, deckorean_UTF-8 Converting from and to UTF-8 format: Unicode(5). There are also codeset converters that convert between the Microsoft Korean code-page format (cp949) used on PC systems and UCS-2, UCS-4, and UTF-8 formats. Note that if the UCS-2, UCS-4, or UTF-8 output from these converters is then converted to DEC Korean, some Hangul char- acters may be lost. For more information, see code_page(5). DEC Korean Fonts The operating system provides Korean fonts for both screen display and printers. The following bitmap fonts are available in various sizes and typefaces for 75dpi and 100dpi display devices: Fonts in Gotic Family: -adecw-gotic-medium-r-normal--16-160-75-75-m-160-ksc5601.1987-1 -adecw-gotic-medium-r-normal--24-240-75-75-m-240-ksc5601.1987-1 -adecw-gotic-medium-r-normal--16-160-100-100-m-160-ksc5601.1987-1 -adecw-gotic-medium-r-normal--24-240-100-100-m-240-ksc5601.1987-1 Fonts in Myungcho Family: -adecw-myungcho-medium-r-normal--16-160-75-75-m-160-ksc5601.1987-1 -adecw-myungcho-medium-r-nor- mal--32-320-75-75-m-320-ksc5601.1987-1 -adecw-myungcho-medium-r-normal--24-240-75-75-m-240-ksc5601.1987-1 -adecw-myungcho-medium-r- normal--16-160-100-100-m-160-ksc5601.1987-1 -adecw-myungcho-medium-r-normal--24-240-100-100-m-240-ksc5601.1987-1 -adecw-myungcho- medium-r-normal--32-320-100-100-m-320-ksc5601.1987-1 Fonts in Screen Family: -adecw-screen-medium-r-normal--18-180-75-75-m-160-ksc5601.1987-1 -adecw-screen-medium-r-normal--24-240-75-75-m-240-ksc5601.1987-1 -adecw-screen-medium-r-normal--18-180-100-100-m-160-ksc5601.1987-1 -adecw-screen-medium-r-nor- mal--24-240-100-100-m-240-ksc5601.1987-1 -adecw-screen-medium-r-normal--18-180-100-100-m-160-ksc5601.1987-1 -adecw-screen-medium-r- normal--24-240-100-100-m-240-ksc5601.1987-1 For PostScript printers, the operating system provides only Munjo fonts. For general information on printing non-English text, refer to i18n_printing(5). SEE ALSO
Commands: locale(1) Others: ascii(5), code_page(5), i18n_intro(5), i18n_printing(5), iconv_intro(5), l10n_intro(5), eucKR(5), Korean(5), Unicode(5) deckorean(5)
All times are GMT -4. The time now is 03:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy