当前位置: 技术问答>linux和unix
至急 sed 如何取得第一个回车后的所有
来源: 互联网 发布时间:2016-03-05
本文导语: 现在有如下 update KHI4.ASOF_INFss set ASOF = current date-150 days,USERID = 'GKDP',TIMESTP = Current Timestamp DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processi...
现在有如下
update KHI4.ASOF_INFss set ASOF = current date-150 days,USERID = 'GKDP',TIMESTP = Current Timestamp
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0204N "KHI4.ASOF_INFSS" is an undefined name. SQLSTATE=42704
我只想要
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0204N "KHI4.ASOF_INFSS" is an undefined name. SQLSTATE=42704
是否能通过sed 截取第一个回车后的所有字段。
如果您有别的好的方法也可以。
谢谢了。
update KHI4.ASOF_INFss set ASOF = current date-150 days,USERID = 'GKDP',TIMESTP = Current Timestamp
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0204N "KHI4.ASOF_INFSS" is an undefined name. SQLSTATE=42704
我只想要
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0204N "KHI4.ASOF_INFSS" is an undefined name. SQLSTATE=42704
是否能通过sed 截取第一个回车后的所有字段。
如果您有别的好的方法也可以。
谢谢了。
|
[code=BatchFile]
#! /bin/sh
#
# file: skipline.sh
# auth: mymtom
# date: 2008-02-22
#
DATA=`cat
#! /bin/sh
#
# file: skipline.sh
# auth: mymtom
# date: 2008-02-22
#
DATA=`cat