Take notes on the command line: Difference between revisions

Content added Content deleted
(Omitted EasyLang)
m (→‎{{header|J}}: Use debian standard install location for J)
Line 1,517: Line 1,517:
=={{header|J}}==
=={{header|J}}==
'''Solution''':<br>
'''Solution''':<br>
<syntaxhighlight lang="j">require 'files strings'
<syntaxhighlight lang="j">#!/usr/bin/ijconsole
require 'files strings'


notes=: monad define
notes=: monad define
Line 1,531: Line 1,532:
exit 0</syntaxhighlight>
exit 0</syntaxhighlight>


Under OSX, replace <tt>/usr/bin/ijconsole</tt> with a version specific path such at /Applications/j602/bin/jconsole
Create a Shortcut called <tt>Notes</tt> that calls the script above using the Target:<br>

Under Windows (where the #! line is irrelevant), create a Shortcut called <tt>Notes</tt> that calls the script above using the Target:<br>
<tt>"c:\program files\j602\bin\jconsole.exe" path\to\script\notes.ijs</tt><br>
<tt>"c:\program files\j602\bin\jconsole.exe" path\to\script\notes.ijs</tt><br>
and Start in: <tt>.\</tt>
and Start in: <tt>.\</tt>