I have a sample file with content:
I need to get it like this:
Basically row to column and column to row. I am trying to use this:
But its showing output as
Can anyone help please?
Thanks,
RK
Moderator's Comments:
Please use code tags next time for your code and data.
Last edited by zaxxon; 09-10-2012 at 08:16 AM..
Reason: code tags
Hi there,
I've an input file1 as follows:
1001
1002
1003
1004
1005
I would like to have an output file2 as follows:
Numbers are 1001/ 1002/ 1003/ 1004/ 1005/
Any help is appreciated. (2 Replies)
Hello,
I often have this problem:
I have a file with a column of unique identifiers
e.g. file1 below has an id column and data column/columns with p rows:
cat data1
dog data2
cow data3
.
.
.
elephant datap-1
horse datap
and I have a conversion file,file2, with n<p rows... (4 Replies)
I have a text file with the geneIds separated by space in each line. The number Ids in lines are different.
The file is like:
abc qwe tyu ghj jkl dfg sdf
cvb sdk fgh tyu
uio iop tyu rty eru wer rty iop
asd sdf dfg fgh zxc
I want to format the file like:
abc
qwe
tyu
ghj
jkl
... (7 Replies)
i am using the command pkginfo -l | /usr/xpg4/bin/grep -e 'VENDOR' -e 'NAME' -e 'VERSION' >> /tmp/test1.txt in order to get name,vendor and version of the applications installed on Solaris machine.The output stored in test1.txt in as shown below:
NAME: Solaris Zones (Usr)
VERSION: ... (4 Replies)
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Hi Unix Forum,
I have a relatively easy question i suppose for which, however, until now i could not find a solution.
I am working with a program that will give me an output file similar to the following:
A
1
2
3
4
B
1
2
3
4
C
1 (9 Replies)
Hi im trying to add numbers, got no problem with it im using awk '{s+=$1} END {print s, "MB"}',
but what if the numbers are like mention below. who will i add them
2000 KB
1 MB
Answer: 2001
Desired:
2000 KB
1 MB
Answer: 3000 (4 Replies)
Hi all;
We have a table:
COL1 COL2 COL3 COL4 COL5 COL6 COL7
val1 val2 val3 val4 val5 1 val7
val1 val2 val3 val4 val5 3 val7
val1 val2 val3 val4 val5 5 val7
val1 val2 val3 val4 val5 2 val7
...
As you see, 6th columns are filled with numbers as, 1, 2, 3, 4, etc... and I want to make a... (10 Replies)
HI,
My Input file data is
dn:adcfgeneral
id:13343
Name:xxxxxx
Password:iutyerwuitywue wpuwt
tuiytruityrutyrwtyrwp
dn:cdferwjyyyy
id:3875
Name:yyyy
Password :hgfdsjkfhdsfkdlshf
dshfkldshfdklsfh
interset:uiuiufj
My output should be
... (6 Replies)