« first day (5 days earlier)      last day (15 days later) » 

7:31 AM
@barlop can u come on chat
 
 
5 hours later…
12:50 PM
@SuperUserMan I did. just type. i'm going out now but type and i'll see
 
 
1 hour later…
2:04 PM
1st question. How do we write space in SED commands? is it like space as usual or like [ ]?
2nd say we want to remove word like RT from Lines, which doesnt have any letter before or after. Would the command be
sed "s/ RT //g"
?
3rd u talked about a solution in which u said ... we could remove all cases of 1+ spaces and replace with one space . Can you tel how to do that. Actually we are removing other stuff too like RT as in 2nd question i asked. Whenever we do that a space is created. We better implement this solution which you talked about which will cater to both RT or @ removal or spaces created by any other thing . What u say?
 
2:30 PM
@barlop ^
 
 
2 hours later…
4:17 PM
@SuperUserMan As to your first question, it's not an intelligent question because if you think it might be [ ] then you can try it out
echo a b| sed "s/[ ]//"
then you see
as for your second question.. i'd have to look up in the chat to something similar. so if you show me the one that does more than that.. the one that removes spaces either side, I can adjust that one
as for 1+ spaces. I might've done that. to remove the 2 spaces. it's at that chat link in the conversation we had yesterday
[ ]+ is 1+ spaces.
SuperUserman: then for those 2 spaces? use 2nd command sed -r "s/[ ]+/ /g" ?
barn: right
barn: that takes 1+ spaces and makes them 1
barn: echo ^"sdfdsf @abcd @fghi sdfdsfds^" | sed "s/@\w*/ /g" <--- produces "sdfdsf sdfdsfds"
I see the chat page we were using only shows the last page of chat
 
4:37 PM
but that's it
 
5:05 PM
yes that chat page has limited history (full history in premium stuff ..who cares)
regarding 2nd question....u told me the following yesterday for removing spaces sed "s/[ ]*@\w*[ ]*/ /g" | sed -r "s/[ ]+/ /g"
So doe that mean for removing word like RT from Lines, which doesnt have any letter before or after. the command would be
sed "s/[ ]RT[ ]*/ /g"
 
5:33 PM
one small thing if we have to say remove : will we use : in command or \d58 ?
 

« first day (5 days earlier)      last day (15 days later) »