[Gluster-users] Tools for the admin
mohitanchlia at gmail.com
Mon Jul 18 16:27:19 UTC 2011
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.)
> Gluster-users mailing list
> Gluster-users at gluster.org
More information about the Gluster-users