rlwrap sqlplus
rlwrap -z"pipeto" sqlplus
*** /usr/share/rlwrap/filters/pipeto.orig 2010-01-03 21:42:16.000000000 +0900 --- /usr/share/rlwrap/filters/pipeto 2015-12-08 10:58:54.817411488 +0900 *************** *** 53 **** ! ($input, undef, $pipeline) = /([^|]*)(\|(.*))?/; --- 53,54 ---- ! ($input, $pipeline) = /(.+)?\s+\|\s+(.*)?/; ! $input= $_ unless $input;
rlwrap -pRed -if ~/rlwrap-extensions/sqlplus sqlplus /nolog
ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY/MM/DD HH24:MI:SS';
ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'YYYY/MM/DD HH24:MI:SS';
-- -- Copyright (c) 1988, 2005, Oracle. All Rights Reserved. -- -- NAME -- glogin.sql -- -- DESCRIPTION -- SQL*Plus global login "site profile" file -- -- Add any SQL*Plus commands here that are to be executed when a -- user starts SQL*Plus, or uses the SQL*Plus CONNECT command. -- -- USAGE -- This script is automatically run -- set lines 200