F
F
fokin_nikolay19892016-03-14 16:44:54
bash
fokin_nikolay1989, 2016-03-14 16:44:54

How to extract words from a file?

Can you guys tell me how to output a word from a file in bash? Need a password because it's different everywhere
#generated password for user SYSDBA is:
ISC_USER=sysdba
ISC_PASSWD=masterkey
# for install on server at time Fri May 23 12:39:18 MSK 2014
# You should change this password at the earliest oportunity
# Your password can be changed to a more suitable one using the
#
and assign some variable to whatever after substituting the variable for example $pass in any place to execute the command

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2016-03-14
@fokin_nikolay1989

#generated password for user SYSDBA is:

ISC_USER=sysdba
ISC_PASSWD=masterkey

# for install on server at time Птн Май 23 12:39:18 MSK 2014
# You should change this password at the earliest oportunity
# Your password can be changed to a more suitable one using the
#

If that's the whole password file, it's already written in bash and you can just execute it and you'll have two variables ISC_USER and ISC_PASSWD.
for example
. config.sh
echo $ISC_USER

M
Max, 2016-03-14
@AloneCoder

grep will save the world

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question