10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have pipe separated file which contains some data having comma(,) in it. I want to remove the comma(,) only from particular column without changing data in other columns.
Below is the sample data file, I want to remove the comma(,) only from 5th column.
$ cat file1
ABC | DEF, HIJ|... (6 Replies)
Discussion started by: Prathmesh
6 Replies
2. UNIX for Dummies Questions & Answers
How do i remove a column using vi editor
Assuming the file to be of format
1: 010 0xad45 sp1 - 11:29:51.498583949 500249144 Event1 rst bcfe jhv rgc
456: 010 0xadb sp2 - 11:29:51.498600605 4464 Event0abcrd adabc aasd
45: 010 0x10 sp0 - 11:29:51.498614165 13560 Back adxca... (6 Replies)
Discussion started by: sp0
6 Replies
3. Shell Programming and Scripting
Hi
I have 5 columns like this
a b c d e
f g h i j
k l m n o
From 2nd column till the 5th column of every record, I would like to transpose them as rows, so my output file contains only one row
a
b
c
d
e
f
g
h
i
j (9 Replies)
Discussion started by: jacobs.smith
9 Replies
4. Shell Programming and Scripting
Dear All,
I have input file like this.
input.txt
CE2_12-15 3950.00 589221.0 9849709.0 768.0 CE2_12_2012
CE2_12-15 3949.00 589199.0 9849721.0 768.0 CE2_12_2012
CE2_12-15 3948.00 589178.0 9849734.0 768.0 CE2_12_2012
CE2_12-52 1157.00 ... (3 Replies)
Discussion started by: attila
3 Replies
5. UNIX for Dummies Questions & Answers
is there any command in vi editor to turn this
986.000 4.026.000 775.328.625 9.319.003.000
986.000 4.036.000 775.328.625 9.318.803.000
986.000 4.046.000 775.328.625 9.318.603.000
986.000 4.056.000 775.328.625 9.318.403.000
become this... (5 Replies)
Discussion started by: muhnandap
5 Replies
6. Shell Programming and Scripting
Hi friends,
My file is like:
Second file is :
I need to print the rows present in file one, but in order present in second file....I used
while read gh;do
awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile
done < secondfile
but the output I am... (14 Replies)
Discussion started by: CAch
14 Replies
7. Shell Programming and Scripting
This is an vi editor question. I do not know is this a right place to ask this question or not?
I have a file with the following contents,
10 11
20 21
30 31
I want to copy first column that is 10,20,30 after second column, so that output will look like the following,
10 11 10
20 21 20... (3 Replies)
Discussion started by: MeetP
3 Replies
8. Shell Programming and Scripting
I'm racking my brain on this one! :(
I have a list like this:
Paul 20
Paul 25
Paul 30
Frank 10
Julie 15
Julie 13
etc, etc...
I've been trying to figure out a way to have the output display the name in the first column ONCE and add the numbers in the second column and display that... (2 Replies)
Discussion started by: sdlennon
2 Replies
9. Shell Programming and Scripting
In VI editor ctrl + g is used indicate the line number on which the cursor is placed...similarly is there a way to determine the column number of the cursor position..? (1 Reply)
Discussion started by: vijay_0209
1 Replies
10. UNIX for Dummies Questions & Answers
Hi Experts,
I have a file which looks like in this way
1 2233|A.K Shukla |G.M |Sales |12/12/52|6000
2 9876|Jai Sharma |Director |Production |12/03/50|67000
3 5678|Sumit Chakarborty |D.G.M |Marketing |19/04/43|6000
4 2365|Barun... (2 Replies)
Discussion started by: DilipPanda
2 Replies