10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have three files of varying lengths and different number of columns. How can I paste all three with all columns aligned?
File1
----
123
File2
----
234
345
678
File3
----
456
789
Output should look like:
123 234 456
345 789 (6 Replies)
Discussion started by: Un1xNewb1e
6 Replies
2. Shell Programming and Scripting
file1.txt
file2.txt
file3.txt
desired output is
each file is in the same directory, hasthe same number of columns but different rows. i want to be able to paste them into one file.
thanks! (5 Replies)
Discussion started by: johnkim0806
5 Replies
3. Shell Programming and Scripting
Hi All,
I have two sets of files.
One set with extension .txt This set has file names with numbers like these. 1.txt, 2.txt, 3.txt until extactly 100.txt.
The .txt files look like these:
0.38701788 93750
0.38622013 94456
0.38350296 94440
0.38282126 94057
0.38282126 94439
0.35847232... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I want to put the following values into Variables R2=0.999863 , V2=118.870318 , D2=-178.887511 and so on. There are six values for each variable R2-R8, V2-V8 and D2-D8, total of 18 values for all the variables. Can any one help me to copy and paste all the values in their respective... (2 Replies)
Discussion started by: sullah
2 Replies
5. Shell Programming and Scripting
Dear All,
I have thousands of files (consists of one column each) and i need to paste all the columns in a single file as follows:
I have files - file1, file2, file3, .......file2000.
I need to paste all the files in a single file of separate columns as shown below:
file1 file2 file3 ... (3 Replies)
Discussion started by: Fredrick
3 Replies
6. Shell Programming and Scripting
Hi,
I want to write the shell script to change multple file name (the file name is get from DB)
e.g. cp db1.txt file1_new.txt
cp db2.txt file2_new.txt
cp db3.txt file3_new.txt
I have write the script like this:
VAR=`sqlplus -s $LOGON @<<ENDOFTEXT
set termout off
... (0 Replies)
Discussion started by: jackyntk
0 Replies
7. Shell Programming and Scripting
I'm trying to "paste" two files but the result is not aligned.
File1 looks like this:
dog.csv
cat.csv
elephant.csv
cougar.csv
File2 looks like this:
2323
33
444
545545
Then I run a paste command:
paste File1 File2 > result.cnt
Then result.cnt file is created like this:... (4 Replies)
Discussion started by: jplayermx
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
1. How can I get around the issue with pasting more than 12 files together?
2. paste file1 file2 > file3........how can I do this with awk??
Thanks! (14 Replies)
Discussion started by: bobo
14 Replies
9. Shell Programming and Scripting
Hi everybody:
I tried to paste several files which have the same pattern name file like this:
down_s1.dat, down_s2.dat, down_s3.dat, down_s4.dat ... down_s10.dat
So I have tried to do it as:
paste down_s.dat > final.dat
But it does not work correctly.
Any suggestion. Thanks in... (1 Reply)
Discussion started by: tonet
1 Replies
10. UNIX for Dummies Questions & Answers
Hello all,
I have two files:
file1:
data1 data2 data3
data4 data5 data6
data7 data8 data9
file2:
reference
I need to paste both files with the following output:
data1 data2 data3 reference
data4 data5 data6 reference
data7 data8 data9 reference
I tried using the paste... (3 Replies)
Discussion started by: mig28mx
3 Replies