Hello,
I am new to shell scripting. Can anyone plz tell me that how to write script
to create the file and insert the data into it.
what i am doing is in script i have written
cat > path.txt
but when i execute the script it doesnt get exited from script explicitly
i have to say ctrl\+d. then only it works..Can nyone plz help me
what I am doing is I have written delete script. in which I am simply moving deleted files to backup directory..& in this script only I have created one path.txt file in which i am storing the deleted files path..
Now I have written one script restore in which if i will say restore in will show me all the files in following format.....
mc09aa:0:/home/workdone/deletedfile1
mc09aa:1:/home/workdone/deletedfile2
mc09aa:3:/home/workdone/deletedfile3
now my concern is if i will say restore 1...In this case deletedfile2 should be get restore to its original location....Can u please help me for writting script