Simple Bash Script
I need to put the contents of a file
file.txt in a bash variable... something like "cat file.txt>$TXT" (this doesn´t work) can you help me ? Tanks |
This might work:
TXT=`cat file.txt` echo $TXT Cheers! |
Code:
TXT="$(<file.txt)" |
All times are GMT -5. The time now is 05:37 PM. |