Or you can also use tr ":" "" to remove ":" On Sun, Jul 17, 2011 at 8:17 PM, Whit Blauvelt <whit.gluster at transpect.com> wrote: > On Mon, Jul 18, 2011 at 03:48:11AM +0100, Dan Bretherton wrote: > >> I had a closer look at this. ?It is the output of gfid-mismatch >> causing the problem; paths are shown with a trailing colon as in >> GlusterFS log files. ?The "cut -f1 -d:" to extract the paths >> obviously removes all the colons. ?I'm sure there is an easy way to >> remove the trailing ':' from filenames but I can't think of one off >> hand (and it is 3:30AM). > > Something along the lines of "sed 's/.$//", as in: > > ? ? ? ?dog="doggy:"; echo $dog | sed 's/.$//' > > That would remove any last character. To just get ":": > > ? ? ? ?dog="doggy:"; echo $dog | sed 's/:$//' > > (No, I didn't know that. I googled.) > > Whit > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://gluster.org/cgi-bin/mailman/listinfo/gluster-users >