I need to gather all the data from different folders and copy it in an one unique text file in columns format.
Let me explain, letīs say "a, b, c" are 3 data files of thousands and thousands lines (in the reality, I have nearly one hundred).
"a, b, c" are located in the folders A, B and C (respectively).
I want to extract "a, b and c" and joined them in the same text file "d".
Whenever I use the function "paste" or "cat" with a for loop, I get a text file like this format :
a
b
c
All the data are written in line. But I would like to get it in such format :
a b c
Is there a way to write directly in such format ?
Or maybe a way to transform from
a
b
c
to
a b c
after writing.
No, you weren't. Are those a, b, and c files one column text files, and you want to join them columnwise? Why doesn't paste work for you?
Please post samples of input data and desired output format based on those data.
Yes, this a one-column text files with... nearly 30 000 rows for only one text.
Yes, I can use
, like this :
I obtain a big file with all the data but only in one column (I want it to be copied columnwise)
Any idea ?
EDIT : I will try to be clearer.
I have a lot of files from different time steps. For example, my folders look like :
In each folder, I have one data text file for every time step. The name of this data text file is always the same for every time step. For example : "pressure".
The data text file "pressure" is given to me like this for the time step
:
For the other time steps, I have a similar text file with different values.
When I try to gather all the data together, I have this kind of output :
Now, I want the output to be like :
Last edited by user10600; 09-30-2015 at 11:37 AM..
Hello Gurus,
I have a multiple pipe separated files which have records going over multiple Lines. End of line separator is \n and records going over multiple lines have <CR> as separator. below is example from one file.
1|ABC DEF|100|10
2|PQ
RS
T|200|20
3| UVWXYZ|300|30
4| GHIJKL|400|40... (7 Replies)
I have a series of csv files in the following format
eg file1
Experiment Name,XYZ_07/28/15,
Specimen Name,Specimen_001,
Tube Name, Control,
Record Date,7/28/2015 14:50,
$OP,XYZYZ,
GUID,abc,
Population,#Events,%Parent
All Events,10500,
P1,10071,95.9
Early Apoptosis,1113,11.1
Late... (6 Replies)
Dear Guru,
IHAC who complaint that his CentOS is getting performance issue.
I have to help him out of there.
Could you please tell me which tools is better to gathering the whole system performance data?
-- CPU/Memory/IO(disk & Network)/swap
I would like the tools could be... (6 Replies)
Hi everyone,
I would like to ask if it is possible to gather SAR data on a specified time. let say yesterdays report, i want to get data at around 12PM and 5PM.
thank you. (2 Replies)
Hi,
I have a file with multiple tab delimited columns and I would like to have the average of each column:
Iteration Tree No Lh HMean
1000 1 -78.834717 -78.834717
1100 1 -77.991031 -78.624046
1200 1 -79.416055 -78.761861
1300 1 -79.280494 -78.968099
1400 1 -82.846275 -80.808696 ... (4 Replies)
Hi, I'm working on gathering information stored in .txt files. The format of the data within the .txt files is shown in the picture uploaded with this post. Sections like the one pictured are repeated (with different data, same format) many times within each .txt file but each section is of data... (4 Replies)
I am pretty new at shell scripting, but I managed to make a primative shell script to connect from my webserver (bluehost) to an external data server via ftp or sftp or whatever I need. This script is :
#!/bin/sh
HOST='ftp.host.com'
USER='username'
PASSWD='password'
FILE='file'
ftp -n... (7 Replies)