[Thread Prev][Thread Next][Index]
Re: [ferret_users] General question about functionalities and customization
- To: Ferret <ferret_users@xxxxxxxx>
- Subject: Re: [ferret_users] General question about functionalities and customization
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Tue, 16 Jun 2020 18:33:35 -0700
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b="Ll/FzDRJ"; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b="Ll/FzDRJ"; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence:to :references:message-id:content-transfer-encoding:cc:date:in-reply-to :from:subject:mime-version:dkim-signature; bh=0/3B8TLbTsm26c1QgDhO2gmHy/Lv3Ck9AZuSzWrHlDQ=; b=DWAxsLsu8f7P5UV4ETCKCGTwQZlCzwx++4i4pC1rjYs1U9gizZQ1bUw4TZrEpOsmZe Oxn0Upi2iB2/cZwIpcE3vSlmOhjHaebtAKQL9ACzaFWVnFtHc1+JXP8zO2B2jC352kp/ XkEUD4+Wl1ZXTWl5/15aSwh3fiHa29BheLdQHo5ahLa4TBkgTZYgHfpe9m1GHITgwj+0 5GSLNpy09ws9KB3iM9N7nxOgIYT1ELXC8PFaCSr7vw9bpn4io8gWcvkui67VuqzUJbiN lcFP5oP+LxI0r85zEyYmlvLHg3nCDKXcbxUDDwoEzQ5E9W9ZpbOK+QUUKnJkgaqTY48N VrmQ==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:dkim-signature; bh=0/3B8TLbTsm26c1QgDhO2gmHy/Lv3Ck9AZuSzWrHlDQ=; b=Bv9V2KLqRgFD15w00iBpMIdcuWrl44L+ZtWWJsAH0jKglsn09AwSpLFA2NlBqkAq4z XDCD4r2H/O+f7run5s8j9icp8CCKPve6EkHCVcPcogLDJ+RUdLb4soN2qS8AvLbamerG M388V29penqkCkathjSvmP+j+3BtEeYsEMZcJfw4BjbvnVeCW6t5PtUSxpnorDWt887U AKzsrVxjjAg5k/0koVe/0fiMNaSq9KOptHULKj8ILf7trjtSf0CjyG5I6LJbNIgtieRS Vo3y7sGmEIlJmp458S/sIdH0I0z+VKnIcik1lrXpMHafcoP1yEVJlhvtlFeRCT0XcZRf jGHw==
- Arc-seal: i=2; a=rsa-sha256; t=1592357619; cv=pass; d=google.com; s=arc-20160816; b=AmMgStwRhack6LivbULCWujD41fTHCUDEUb+zMT48NQ1vOl4N2nRol/lvj7Zj/TyMT MU5kBF7DN2RX3LdXPBoTN302A8jC6vH5oVG4NRX256lXW3RF4QsHm8Q3szbNwvS3yx/d vldv0wdwpXJ9AFkMRTgaWNLUiGApwqQH2F5HtE0WPWTpIXLYLjVh3fwq9in/xQyhVfuf D6PlnvhVgctQiJ3bScXsRVff0K+VBuVRDcnoTvmz/dKPVhmbsCsdXakosZJusQ/tV6BO lWSSTg4PPT79I7Kp7nr7l19Gypb9h0BVowXWl1KB8CqQEC9Zs5f/W0wfMDxanIZMpztQ yb1g==
- Arc-seal: i=1; a=rsa-sha256; t=1592357618; cv=none; d=google.com; s=arc-20160816; b=z8QJPFttOMd85SYYwHixHok6Ej4s4qLsm8iwdGBu3Th0SefIpllX1sVpgJdqM6UYqw Okd/LZwcffTZILhXlE058pYjzf5qZfloc53DgRhNJ8AWbJdlS4G41IQLJXDlXTkGVtGT hbqM7T6EqL1WSHFd5Q/TXnOx1PWReU6QEl1G5Nh6BUIhIx/pedvPxTjfCKGB2KQmlFud 3csp2qGPV/QYAe8o++MJl7KXRRR+M69g9uOCQZGBuVO1IXKjW3/iuD8XwR+zATnkIxWN UnFimvgHDzFVQhcTojk4hfXU2pxXYiHwWORaLXCYweiSEFUBHdfLpCg5yqvTIW7vQcM6 EJug==
- Cc: "William S. Kessler" <william.s.kessler@xxxxxxxx>, "Fiedler, Russell (O&A, Hobart)" <Russell.Fiedler@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=0/3B8TLbTsm26c1QgDhO2gmHy/Lv3Ck9AZuSzWrHlDQ=; b=h3lbYjrIvkxOn1xNJq/rH+Xlo7NmOPbAiIhjfQ6793e0Rb+7J+34d+72a4FZVoEHbj 93LXuog/4AVN/0ctBm5wipLGO2lYbSxCAHBjgRZFMANlQMxeMCGCks2if0nVIH/QyR83 kFKMwITTRZkwK5l95892GqOsSDVFZn727g7njXiXDEudB0M88Nehemp1W2/Sp8zVnNQD UL1084LyvgK81/vufdPNKUsJxrTxcc7yDcObdK2OYUlScd/OipeGT6Y6NfuXH/vy7YBQ cj7/omSj1aJCEAY4903C+VPtwR9+yArHZG4qvEZedP7d5AmQ+TIMZp/5LBVUjzYL5bxy 7/Lw==
- In-reply-to: <MEXPR01MB16391E4E418E8C748A3F26BA9D9A0@MEXPR01MB1639.ausprd01.prod.outlook.com>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <0fde9cf2-7047-98ca-0780-1fc3a2fe9f75.ref@yahoo.it> <9d70a6e4-0eb3-8a33-7f93-2de02608307c@yahoo.it> <MEXPR01MB16391E4E418E8C748A3F26BA9D9A0@MEXPR01MB1639.ausprd01.prod.outlook.com>
- Sender: owner-ferret_users@xxxxxxxx
> On Jun 16, 2020, at 5:51 PM, Fiedler, Russell (O&A, Hobart) <Russell.Fiedler@xxxxxxxx> wrote:
>
> 4) I use journal files in development. Just cut and paste the necessary parts of your interactive sessions into a .jnl file.
>
> There's an FAQ on rempoving/renaming jounal files
>
> https://ferret.pmel.noaa.gov/Ferret/faq/controlling-ferret-jnl-files
This may be an opportune time to repost (from Jan 2000!) some homemade add-ons for working with jnl files (tcsh shell syntax):
1. In any directory from which I want to run ferret, I make a subdirectory "fjnl".
2. On starting ferret, I execute a startup file that consists of the following 2 lines:
set mode journal fjnl/ferret.jnl
sp ls -t1 fjnl/* | head -2 | tail -1
This sets the session to write to the fjnl subdirectory, and tells me the number of the most recent ferret.jnl file there. The result is that all my jnl files are conveniently at hand, but do not clutter up my working directories.
3. I have defined (out-of-Ferret) aliases for the following:
alias txjnl 'tx fjnl/ferret.jnl.~\!*~' (tx points to my text editor)
alias wcjnl 'wc fjnl/ferret.jnl.~\!*~' (how big is this jnl file?)
alias lljnl 'ls -lt fjnl/ferret.jnl.~\!*~' (when was it created?)
alias grepjnla 'grep \!* fjnl/*' (search all of the jnl files)
alias grepjnln '/home/pontus/kessler/ferret/grepjnl.com' (search a particular jnl file by number)
(where grepjnl.com is an executable file consisting of the single line: grep -i $1 fjnl/ferret.jnl.~$2~
These aliases allow easy working with the jnl files.
For example, suppose I want to know how I made the gif file filename.gif:
> grepjnla filename.gif
That tells me which jnl file made it (say it was #233). Now I can see what files I used, what scripts I called, and what variables I defined in that session:
> grepjnln use 233
> grepjnln go 233
> grepjnln let 233
Perhaps I want to bring up that jnl file in a text editor for pasting commands into a current session or a script. But first it might be useful to know how many lines it has:
> wcjnl 233
> txjnl 233
And so on. These things make it really easy to work with jnl files, and reduce clutter. All the jnl files are collected in a convenient place. I never have the need to give a command like rm *.jnl.
Billy K
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement