10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have 2 files.
file1 contains by lines: hash:salt:id
file2 contains by lines: username:hash:salt
I would like to add a new coloumn (id) form file1 to file2.
The new file should contains: username:hash:salt:id
Note: file1 contains less rows than file2.
paste -d':' file1... (12 Replies)
Discussion started by: freeroute
2. UNIX for Dummies Questions & Answers
I have this data file that contains:
I want the results to be:
1 A A
2 B A
3 C A
4 D A
5 E A
6 F A
7 G A
8 H A (8 Replies)
Discussion started by: bobo
3. Shell Programming and Scripting
I have file like this
Now I want to add a new column a with fixed values for all the rows
Please let me know how can we do this in unix. (4 Replies)
Discussion started by: weknowd
4. Shell Programming and Scripting
Input File 1
MI0043 2731 miR-1
Input File 2
MI006 310 CiR-1
MI057 10 CiR-24
MI750 5 CiR-24
Desired Output File 1
MI0043 2731 miR-1 S1.txt
Desired Output File 2
MI006 310 CiR-1 S4.txt (3 Replies)
Discussion started by: perl_beginner
5. Shell Programming and Scripting
Lets say, I've a file a.txt containing two columns, like
and another file b.txt containg two columns, like
I need to put c1 column from b.txt file to the a.txt file. So, the output should be
a1 b1 c1
.. .. ..
.. ... (4 Replies)
Discussion started by: mkg
6. Shell Programming and Scripting
Hi, long time reader, first time poster.
I've done some searching so please if this is a repeated post excuse the duplicate, but what I have are two files roughly like so:
And what I would like to get out is... (4 Replies)
Discussion started by: wallysb01
7. Shell Programming and Scripting
How can I add a column to a existing file??
PS: The column which should be added need to be the first column and it will be a parameter from the script.
Need to add parameter $file as a first column. $file is a file name with time... (6 Replies)
Discussion started by: Olivia
8. Shell Programming and Scripting
So I have this input
1 10327 rs112750067 T C . PASS DP=65;AF=0.208;CB=BC,NCBI
1 10469 rs117577454 C G . PASS DP=2055;AF=0.020;CB=UM,BC,NCBI
1 10492 rs55998931 C T . PASS DP=231;AF=0.167;CB=BC,NCBI
1 10583 rs58108140 G A ... (3 Replies)
Discussion started by: kellywilliams
9. Shell Programming and Scripting
I have file which contains 5 coulmns i need to add the fifth column value and put it in the desired location in the same column.
Here is the sample file..
ashop0004 SQL- 06/14/2009 06/14/2009 00:04:28 SUM
ashop0004 SQL- 06/14/2009 06/14/2009 00:00:37 ... (22 Replies)
Discussion started by: cutechaps
10. Shell Programming and Scripting
Please help me if u have some solution.
I have a file with three columns separated by ':' -
C416722_2 : calin Dirigent : Dirigent
AC4174_6 : Jac : cal_co
TC4260_5 : [no : lin kite
BC426302_1 : [no : calin Dirigent lin
JC426540_3 : lin Pymo_bin : calin
TC428_3 : no7... (4 Replies)
Discussion started by: sam_2921