You are not logged in.

#1 2009-05-01 14:19:01

Dimon-z
Member
Registered: 2008-06-22
Posts: 92

bash scripting

Hello..Help me with small bash scripting..
how to relase this idea..
I have file query.txt
in this file..text string (e.g hello world)
and bash script get all from this file and write to varialbe and exec command..
e.g

variable = text_string_from_file
echo variable

thank...

Offline

#2 2009-05-01 14:21:01

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: bash scripting

var=$(cat file)
echo $var

Offline

#3 2009-05-01 14:23:11

Dimon-z
Member
Registered: 2008-06-22
Posts: 92

Re: bash scripting

Yeah..thank..)

Offline

Board footer

Powered by FluxBB