F
F
fokin_nikolay19892016-09-28 12:34:27
bash
fokin_nikolay1989, 2016-09-28 12:34:27

How to output a string after a certain character?

I want to output only after the = sign

# grep 'ncore=' /opt/aliases.conf 
ncore=/home/firebird/db/firebird.fdb

or if someone is selenium in firebird, then maybe he will tell you how to derive the path to the base from the alias

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Kuts, 2016-09-28
@fokin_nikolay1989

$ grep 'ncore=' /opt/aliases.conf | sed 's/=/ /' | awk '{ print $2 }'
/home/firebird/db/firebird.fdb

A
abcd0x00, 2016-09-29
@abcd0x00

sed -n 's/ncore=//p' /opt/aliases.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question