Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to paste multiple files in parallel? Post 303033102 by notimenocall on Friday 29th of March 2019 05:46:49 PM
Old 03-29-2019
Hi Don,

Thanks for taking a look at this. Below is the output from the code:
Code:
File: 235423.tsv:
0000000  32  33  35  34  32  33  0d  0a  30  2e  30  0d  0a  30  2e  30
          2   3   5   4   2   3  \r  \n   0   .   0  \r  \n   0   .   0
0000020  0d  0a  30  2e  30  0d  0a  30  2e  30  0d  0a  30  2e  30  0d
         \r  \n   0   .   0  \r  \n   0   .   0  \r  \n   0   .   0  \r
0000040  0a  30  2e  30  0d  0a  30  2e  30  0d  0a  30  2e  30  0d  0a
         \n   0   .   0  \r  \n   0   .   0  \r  \n   0   .   0  \r  \n
0000060  30  2e  30  0d  0a
          0   .   0  \r  \n
0000065
File: 263428.tsv:
0000000  32  36  33  34  32  38  0d  0a  30  2e  30  0d  0a  30  2e  30
          2   6   3   4   2   8  \r  \n   0   .   0  \r  \n   0   .   0
0000020  0d  0a  30  2e  30  0d  0a  30  2e  30  0d  0a  30  2e  30  0d
         \r  \n   0   .   0  \r  \n   0   .   0  \r  \n   0   .   0  \r
0000040  0a  30  2e  30  0d  0a  30  2e  30  0d  0a  30  2e  30  0d  0a
         \n   0   .   0  \r  \n   0   .   0  \r  \n   0   .   0  \r  \n
0000060  30  2e  30  0d  0a
          0   .   0  \r  \n
0000065
File: 291417.tsv:
0000000  32  39  31  34  31  37  0d  0a  30  2e  30  0d  0a  30  2e  30
          2   9   1   4   1   7  \r  \n   0   .   0  \r  \n   0   .   0
0000020  0d  0a  30  2e  30  0d  0a  30  2e  30  0d  0a  30  2e  30  0d
         \r  \n   0   .   0  \r  \n   0   .   0  \r  \n   0   .   0  \r
0000040  0a  30  2e  30  0d  0a  30  2e  30  0d  0a  30  2e  30  0d  0a
         \n   0   .   0  \r  \n   0   .   0  \r  \n   0   .   0  \r  \n
0000060  30  2e  30  0d  0a
          0   .   0  \r  \n
0000065


Last edited by RudiC; 03-29-2019 at 06:59 PM..
 

10 More Discussions You Might Find Interesting

1. High Performance Computing

Parallel Execution on Multiple System

Hi All, I am working on a project where I need to execute set of arguments (around 500) on a Simulator. If I execute this on one linux (RedHat 8.0) machine it will approximately takes 2~3 days. Since I am having more linux machines am thinking of executing these on different machines in... (7 Replies)
Discussion started by: 123an
7 Replies

2. Shell Programming and Scripting

Need to run same script multiple times in parallel

Hi all, I have a requirement in which a script invokes a Java program. Lets say script ABC invokes a java program with cfg file a parameter. This script takes 10 minutes to execute . Like this ineed to run the program 10 times meaning 100 minutes if i do it sequentially. If i open... (2 Replies)
Discussion started by: rahman_riyaz
2 Replies

3. Shell Programming and Scripting

Calling multiple functions in parallel

Hello, I have multiple functions within a shell script. eg. function_database_backup, unix_tar_creation, etc. I would like to run these functions in parallel, as each is independent of the other. If these were simple commands, I could have probably run each of the commands in background. ... (1 Reply)
Discussion started by: neil.k
1 Replies

4. Shell Programming and Scripting

scp or rsync multiple files in parallel from a remote host

Hi. I'm trying to speed up an rsync command by running it in parallel. There's no real option for this other than if the files are in multiple directories (which they're not). And even then there's no way of knowing if rsync has succeeded as the process is running in the background .. and... (4 Replies)
Discussion started by: Big_Jeffrey
4 Replies

5. Shell Programming and Scripting

Multiple child running parallel

Hi , I am using sun Solaris machine. The machine description is given below SunOS ptxsa021 5.9 Generic_118558-24 sun4u sparc SUNW,Sun-Fire-15000 I am using korn shell.the scripts is below Parent code is given below..it is the part of code #!/bin/ksh # Script Name:... (3 Replies)
Discussion started by: ashutosh2378
3 Replies

6. Shell Programming and Scripting

Paste multiple files, but only the sorted head -50

Hello, I want to merge multiple files (under hundreds folders) side by side. File name are the same but folder are different. like folder1/same_name.txt folder2/same_name.txt folder3/same_name.txt ......Normally it can be done as paste /different_path*/same_name.txt > merged_file.txtbut... (2 Replies)
Discussion started by: yifangt
2 Replies

7. Shell Programming and Scripting

Executing Multiple Queries in parallel in Shell

I have n number of SQL queries needs to executed in Shell. Result of this query need to assign in a variable. Once all the queries are executed script needs to exit. Sample Query: SQL 1: Select Count(*) from TABLE GROUP BY COL1,COL2 SQL 2: Select Count(*) from TABLE GROUP BY COL1,COL2 ... (2 Replies)
Discussion started by: Niranjancse
2 Replies

8. 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

9. UNIX for Beginners Questions & Answers

How to copy a column of multiple files and paste into new excel file (next to column)?

I have data of an excel files as given below, file1 org1_1 1 1 2.5 100 org1_2 1 2 5.5 98 org1_3 1 3 7.2 88 file2 org2_1 1 1 2.5 100 org2_2 1 2 5.5 56 org2_3 1 3 7.2 70 I have multiple excel files as above shown. I have to copy column 1, column 4 and paste into a new excel file as... (26 Replies)
Discussion started by: dineshkumarsrk
26 Replies

10. 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
JSON_PP(1)						 Perl Programmers Reference Guide						JSON_PP(1)

NAME
json_pp - JSON::PP command utility SYNOPSIS
json_pp [-v] [-f from_format] [-t to_format] [-json_opt options_to_json] DESCRIPTION
json_pp converts between some input and output formats (one of them is JSON). This program was copied from json_xs and modified. The default input format is json and the default output format is json with pretty option. OPTIONS
-f -f from_format Reads a data in the given format from STDIN. Format types: json as JSON eval as Perl code -t Writes a data in the given format to STDOUT. null no action. json as JSON dumper as Data::Dumper -json_opt options to JSON::PP Acceptable options are: ascii latin1 utf8 pretty indent space_before space_after relaxed canonical allow_nonref allow_singlequote allow_barekey allow_bignum loose escape_slash -v Verbose option, but currently no action in fact. -V Prints version and exits. EXAMPLES
$ perl -e'print q|{"foo":"XX","bar":1234567890000000000000000}|' | json_pp -f json -t dumper -json_opt pretty,utf8,allow_bignum $VAR1 = { 'bar' => bless( { 'value' => [ '0000000', '0000000', '5678900', '1234' ], 'sign' => '+' }, 'Math::BigInt' ), 'foo' => "x{3042}x{3044}" }; $ perl -e'print q|{"foo":"XX","bar":1234567890000000000000000}|' | json_pp -f json -t dumper -json_opt pretty $VAR1 = { 'bar' => '1234567890000000000000000', 'foo' => "x{e3}x{81}x{82}x{e3}x{81}x{84}" }; SEE ALSO
JSON::PP, json_xs AUTHOR
Makamaka Hannyaharamitu, <makamaka[at]cpan.org> COPYRIGHT AND LICENSE
Copyright 2010 by Makamaka Hannyaharamitu This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2014-09-30 JSON_PP(1)
All times are GMT -4. The time now is 08:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy