10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'd always appreciate all helps from this site.
I would like to delete duplicated chunks of strings on the same row(?).
One chunk is comprised of four lines such as:
I would like to delete duplicated chunks on the same... (5 Replies)
Discussion started by: jypark22
2. UNIX for Dummies Questions & Answers
I would like to know how can I use sed in all columns of a file tab separated.
Example of input file:
Desired output file:
1,0 0,2 (3 Replies)
Discussion started by: fadista
3. Shell Programming and Scripting
so i have strings such as this:
i need to get rid of the "#" and the numbers between them for each of the strings above. so the desired output should be:
... (1 Reply)
Discussion started by: SkySmart
4. UNIX for Dummies Questions & Answers
could u help in the following? I have the data (long list!) that looks like (three coumns white space separated):
rs3094315 0.0665173 742429
rs12562034 0.0738998 758311
rs3934834 0.396449 995669
rs9442372 0.402693 1008567
rs3737728 0.406271 1011278
rs6687776 0.435429 1020428
rs9651273... (4 Replies)
Discussion started by: kush
5. Shell Programming and Scripting
I would like to remove the first column of lines beginning by a character (in my case is an open square bracket) and finishing by a space (or any other delimiter).
string1 string2 string3
I found this previous topic:
... (1 Reply)
Discussion started by: stoyanova
6. UNIX for Dummies Questions & Answers
I've got a file like this:
a 1 0 0 0 1 0 0 1 1 3 3 1 4 4 4
b 1 0 0 0 1 4 4 1 3 1 1 4 4 2 2
c 1 0 0 0 2 0 0 3 3 1 3 1 1 2 4
d 1 0 0 0 2 0 0 1 1 0 0 4 4 2 4
The file has ~4200 entries. I need to exclude those columns that are zeros for all those rows that have 2 in column 6. For... (0 Replies)
Discussion started by: zajtat
7. Shell Programming and Scripting
I would like to get rid of all comment in an xml file by grep or sed command:
The content seem like this:
<!-- ab cd
ij kl -->
Anyone can help?
Thanks and Regards (3 Replies)
Discussion started by: RonLii
8. Shell Programming and Scripting
i am using sed command to grep just a valuable data for my report generating. Thanks to the person who assists me on before thread. the problem that i encounter now is when i executed below command
The output will give me like below output in between the data, there is a double quote. How... (6 Replies)
Discussion started by: anakiar
9. Shell Programming and Scripting
Please Could you help me with the following ?
aaaa bbbb cccc sdsd
aaaa bbbb cccc qwer
as you can see, the 2 lines are matched in three fields...
how can I delete this pupicate ? I mean to delete the second one if 3 fields were duplicated ?
Thanks (14 Replies)
Discussion started by: yahyaaa
10. Shell Programming and Scripting
i have a file contain multicolumns, this file is sorted by col2 and col3.
i want to remove the duplicated columns if the col2 and col3 are the same in another line.
AA BB CC DD
CC XX CC DD
BB CC ZZ FF
DD FF HH HH
the output is
AA BB CC DD
BB CC ZZ FF... (6 Replies)
Discussion started by: kamel.seg