From: Ray Andrews <rayandrews@eastlink.ca>
To: Bart Schaefer <schaefer@brasslantern.com>, zsh-users@zsh.org
Subject: Re: combine/merge .history?
Date: Mon, 13 Oct 2014 14:58:10 -0700 [thread overview]
Message-ID: <543C4AF2.5090406@eastlink.ca> (raw)
In-Reply-To: <141013143308.ZM6789@torch.brasslantern.com>
On 10/13/2014 02:33 PM, Bart Schaefer wrote:
> Sorry, I thought you were giving examples of file contents, not examples
> of the output of the "history" command. I didn't recognize it because I
> never use SHARE_HISTORY and forgot that "foreign" history entries get
> marked with a "*".
My mistake Bart, I should have used the same method for showing both.
Now that I 'cat' both
the new and old .histfiles, they format exactly the same.
> So ... if the format of entries *in the two files* looks similar, you
> should be OK to combine them. If both of them have the extended format
> (timestamp:elapsed;command) then you should be able to merge them and
> sort the result by timestamp without any major problems.
>
> Just beware of multi-line entries, e.g., a plain "sort -n" will garble
> those badly.
OK, I"m good to go.
prev parent reply other threads:[~2014-10-13 21:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-02 19:40 Trial for 5.0.7 Peter Stephenson
2014-10-04 14:08 ` Ray Andrews
2014-10-04 15:46 ` Bart Schaefer
2014-10-04 21:29 ` Ray Andrews
2014-10-08 20:06 ` Ray Andrews
2014-10-08 22:24 ` Bart Schaefer
2014-10-13 17:03 ` combine/merge .history? Ray Andrews
2014-10-13 17:59 ` Bart Schaefer
2014-10-13 20:33 ` Ray Andrews
2014-10-13 21:33 ` Bart Schaefer
2014-10-13 21:58 ` Ray Andrews [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=543C4AF2.5090406@eastlink.ca \
--to=rayandrews@eastlink.ca \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).