I have one text file in host level Ex: /tmp/file.txt. So I have one script and I need to read the line by line from file.txt, so I used sed
command. So I am using while loop in the script and I have logged in to DB level, how can I use sed
command or similar to sed
for accessing one line data from file.txt ?in database level
Ex: sed -n '5p' "/tmp/file.txt" (or) awk 'NR==5' /tmp/file.txt
So this output I want to check in db level after isql
command? Is it possible. Can any one suggest the alternate?