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 303033838 by RudiC on Friday 12th of April 2019 08:50:56 AM
Old 04-12-2019
Those are variable / file names, not commands; nothing to be installed. Above proposal was tested with your two sample files, and it worked. What is your shell? Show a log of what you are doing.
 

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
PMDASHPING(1)						      General Commands Manual						     PMDASHPING(1)

NAME
pmdashping - "shell-ping" performance metrics domain agent SYNOPSIS
$PCP_PMDAS_DIR/shping/pmdashping [-C] [-d domain] [-l logfile] [-I interval] [-t timeout] [-U username] configfile DESCRIPTION
pmdashping is a Performance Metrics Domain Agent (PMDA) which exports quality of service and response time measurements for arbitrary com- mands as might be run from a shell such as sh(1). These measurements are intended to be used to quantify service quality and service availability for those services that are either mission critical or act as early indicators of adverse system performance. The sample configuration monitors simple shell commands (exit and date(1)), a short computationally intensive task using sum(1), a short C compilation, DNS lookup via nslookup(1), YP lookup via ypcat(1), bind/portmapper service using rpcbind(1), SMTP by connecting to telnet port 25 and sending an ``expn root'' request, and NNTP by connecting to telnet port 119 and running a ``listgroup'' command. It is expected that other commands would follow the examples in the sample configuration file, and most deployments of the pmdashping PMDA are expected to use a customized configuration file. A brief description of the pmdashping command line options follows: -C Parse configfile, reporting any errors and exiting with non-zero status if the file contains syntactical errors. -d It is absolutely crucial that the performance metrics domain number specified here is unique and consistent. That is, domain should be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts. -l Location of the log file. By default, a log file named shping.log is written in the current directory of pmcd(1) when pmdashping is started, i.e. $PCP_LOG_DIR/pmcd. If the log file cannot be created or is not writable, output is written to the standard error instead. -I Amount of time (in seconds) between subsequent executions of the list of commands provided via the configuration file configfile. The default is 2 minutes. -t Amount of time (in seconds) to wait before timing out awaiting a response for a command from configfile. The default is 20 seconds. -U User account under which to run the agent and all commands. The default is the unprivileged "pcp" account in current versions of PCP, but in older versions the superuser account ("root") was used by default. The required configfile specifies ``tag'' and ``command'' pairs, each on a separate line. All of the commands are run one after another, with the whole group rescheduled to be run once per interval. For each command that is run, pmdashping records information related to the success (or timeout), exit status, elapsed time and CPU time (system and user), and this information is exported by the PMDA. The tags are used to identify the individual commands amongst the values exported by the PMDA, and form the external instance domain identifiers for the pmdashping metrics which relate to each command. INSTALLATION
In order for a host to export the names, help text and values for the shping performance metrics, do the following as root: # cd $PCP_PMDAS_DIR/shping # ./Install The set of ``tag'' and ``command'' pairs may be specified from a default (sample) configuration file, a customized file or entered interac- tively as part of the Install script. If you want to undo the installation, do the following as root: # cd $PCP_PMDAS_DIR/shping # ./Remove pmdashping is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is installed or removed. FILES
$PCP_PMCDCONF_PATH command line options used to launch pmdashping $PCP_PMDAS_DIR/shping/help default help text file for the shping metrics $PCP_PMDAS_DIR/shping/sample.conf example configuration file with a number of common commands $PCP_PMDAS_DIR/shping/Install installation script for the pmdashping agent $PCP_PMDAS_DIR/shping/Remove undo installation script for pmdashping $PCP_LOG_DIR/pmcd/shping.log default log file for error messages and other information from pmdashping PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura- tion file, as described in pcp.conf(5). SEE ALSO
pmcd(1) and pmgshping(1). Performance Co-Pilot PCP PMDASHPING(1)
All times are GMT -4. The time now is 01:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy