Changes between Version 33 and Version 34 of ErlangShellInterface
- Timestamp:
- Apr 29, 2013, 7:01:07 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ErlangShellInterface
v33 v34 177 177 Additional options can be given to a [[SemanticQuery|semantic query]] in a proplist as the last 178 178 argument. The following arguments are currently recognized:\\ 179 * '''{out,!FileName}''': write the textual output of a query to a file. \\179 * '''{out,!FileName}''': write the textual output of a query to a file. If the Filename contains relative path, then it will be converted absolute by using the path of the current working directory as base.\\ 180 180 * '''linenum''': prepends match sites with file and line number information.\\ 181 181 similar to '''grep -n'''. 182 182 The following example outputs all defined functions with line numbers to a 183 file named result.txt .183 file named result.txt and located in the current working directory. 184 184 185 185 {{{ 186 186 #!erlang 187 187 ri:q("mods.funs",[linenum,{out,"result.txt"}]). 188 }}} 189 190 or 191 192 {{{ 193 #!erlang 194 ri:q(m, "f\\(X, Y\\)", "@fun.var", [linenum,{out,"result.txt"}]). 188 195 }}} 189 196