08-01-2012
$ echo "h,e,l,l,o, world" |tr -d ','
hello world
i hope it will solve ur problem
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Newbie here. I have a file that consists of data that I want to convert to a csv file. For example:
Jul 20 2008 1111 / visit home / BlackBerry8830/4.2.2 Profile/MIDP-2.0 Configuration/CLOC-1.1 VendorID/105
Jul 21 2008 22222 / add friend / BlackBerry8830/4.2.2 Profile/MIDP-2.0... (3 Replies)
Discussion started by: kangaroo
3 Replies
2. Shell Programming and Scripting
Hi Experts,
I have below strings
hello,hi,,,,,,start date
age,code,,,,,61,season
I am trying to format this string to
hello,hi,start date
age,code,61,season
Can anyone please help me in achieving this?
Kind Regards,
RB (3 Replies)
Discussion started by: ramakanth_burra
3 Replies
3. Shell Programming and Scripting
Hi,
my requirement is to find the count of commas in a string excluding the ones in double quotes.
For example:
If the input string is
abc,xyz.com,lmhgdf,"abc, 401 street","tty,stt",45,23,45
The output should be 7 (7 Replies)
Discussion started by: amitshete
7 Replies
4. Shell Programming and Scripting
inputfile has 3 columns
SCHEMA.TAB1 COL1 LENGTH
SCHEMA.TAB2 COL2 LENGTH.
If i use awk on the above inputfile
awk '{print $1}' inputfile.The out put will be
SCHEMA.TAB1
SCHEMA.TAB2.
But from the above output i need to delete SCHEMA. i.e i don't want the string "SCHEMA." should... (6 Replies)
Discussion started by: rocking77
6 Replies
5. Shell Programming and Scripting
I'm a beginner with shell and tried to do this per hours and everytinhg gives different want i do.
So
I have a lot of file in *.csv ( a.csv, b.csv ...)
in each file csv , it has some fields separeted by commas.
-----
"joseph";"21","m";"groups";"j.j@gmail.com,j.j2@hotmail.com"... (6 Replies)
Discussion started by: flaviof
6 Replies
6. Shell Programming and Scripting
Hi all,
i have some logs on my linux server that looks like this:
CDR.2012-04-30:30-04-2012 14:09:36;123456456654;A;Greetings! Your amount is 42.24 dollars (without VAT) until 30/04/2012 11:00.
CDR.2012-04-30:30-04-2012 14:09:36;12154878454212;A;Greetings! Your amount is 4203.2 dollars... (2 Replies)
Discussion started by: arrals_vl
2 Replies
7. Shell Programming and Scripting
(5 Replies)
Discussion started by: chrisjorg
5 Replies
8. Shell Programming and Scripting
Okay, I would like to delete all the commas in a .CSV file (TEST.CSV) or at least substitute them with empty space, that are enclosed in double quote.
Please see the sample file as below:
column 1,column 2,column 3,column 4,column 5,column 6,column 7,column 8,column 9,column 10... (8 Replies)
Discussion started by: dhruuv369
8 Replies
9. Shell Programming and Scripting
Hello everyone, I have a dataset that looks something like:
1 3
2 2
3 4,5
4 3:9
5 5,9
6 5:6
I need to remove the rows that contain a comma in the second column and I'm not sure how to go about this. Here is an attempt.
awk 'BEGIN {FS=" "} { if ($2!==,) print }'Any help is appreciated. (5 Replies)
Discussion started by: Rabu
5 Replies
10. Shell Programming and Scripting
When I output fields 1 2 4 5 & 6, I would like to have a comma between them but I am beating my head against the wall to get it to work. Any help is appreciated
sed 's/]*,]*/,/g' file1 > file1.$$ && awk -F, 'FNR==NR{f2=$1 $2 $4 $5 $6;next} FNR==1{print $0, "CDP NE Hostname,CDP NE IP,Remote... (6 Replies)
Discussion started by: dis0wned
6 Replies
LEARN ABOUT DEBIAN
openfetion
OPENFETION(1) OPENFETION(1)
NAME
openfetion - open source implementation of fetion protocol client
SYNOPSIS
openfetion -f SOURCE -t DEST -d MESSAGE
openfetion -f SOURCE -m -d MESSAGE
openfetion -f SOURCE -p -t DEST -d MESSAGE
openfetion -f SOURCE -g NUM
DESCRIPTION
openfetion is a fetion client for Linux based on GTK+2.0, using Fetion Protocol Version 4.
It supports most useful functions of China Mobile Fetion, more important, it's small and fast, and is better in look.
-f specify which number you will use to send a message
-t specify which number you will send a message to
-d message you will send
-m send a message to myself
-p send a message to the phone
-g get information of specific mobile number
-h, -H display this help and exit
EXAMPLES
send "hello world" to 18788888888:
openfetion -f 15288888888 -t 1878888888 -d "hello world"
send "hello world" to yourself:
openfetion -m -f 15288888888 -d "hello world"
get information of 18788888888:
openfetion -f 15288888888 -g 1878888888
AUTHOR
Written by Aron Xu <happyaron.xu@gmail.com>.
RESOURCES
openfetion home page: http://code.google.com/p/ofetion
COPYING
Copyright (C) 2009 Aron Xu. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
2010-12-26 OPENFETION(1)