December 09, 2008

UNIX case study - 6

Hi all,
I have a problem here. I have a file and let we take the content of the file is just '32' (only a numeric value in that file). Now I need to assign this numeric value ( value in that file) to a variable. Is that possible? If so, can you plz advice me on this?

_____

read variable_name < file_name

variable_name=$(

http://www.unix.com/unix-dummies-questions-answers/91540-how-assign-content-file-variable.html

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.