Hi all,
Got struck with a logic. We used to store values in variables, which are stored in memory and not written to Hard disk.
say
Code:
my_varialbe=`ls -l |awk '{print $9}' |grep myfile`
I used to store a set of file names to a file and then recall them . There is a way to store the set of file names as it is and call them whenever needed . I want to store a file on memory and to recall it. How can I Do that?
say
Code:
`ls -l |awk '{print $9}' |read this to a file
will give a list of files and I just want to read it into a file and want to read the lines one by one , if needed.
How can I do that ?
Thanks