sed:-e expression#1,char 1:未知命令错误

时间:2016-12-17 14:14:38

标签: shell sed

sed -i “s:export BINDIR ?= /usr/local/bin/:export BINDIR ?= /usr/sbin:g” Makefile

我在ubuntu 14.04上运行以上命令时遇到以下错误。可以请有人帮我解决这个问题吗?

错误

  

sed:-e表达式#1,字符1:未知命令:`�'

1 个答案:

答案 0 :(得分:2)

我建议:

 Create the graph, etc.
init_op = tf.global_variables_initializer()

# Create a session for running operations in the Graph.
sess = tf.Session()

# Initialize the variables (like the epoch counter).
sess.run(init_op)

# Start input enqueue threads.
coord = tf.train.Coordinator()
threads = tf.train.start_queue_runners(sess=sess, coord=coord)

try:
    while not coord.should_stop():
        # Run training steps or whatever
        sess.run(train_op)

except tf.errors.OutOfRangeError:
    print('Done training -- epoch limit reached')
finally:
    # When done, ask the threads to stop.
    coord.request_stop()

# Wait for threads to finish.
coord.join(threads)
sess.close()