# print line number 52
sed -n '52p' # method 1
sed '52!d' # method 2
sed '52q;d' # method 3, efficient on large files vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
the best approach: vlad's 1.method -----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
# assuming this is part of an awk script:
#
for(ind in termsARR){
cmd="sed -n '" ind "p' log";
# system(cmd);
# OR
# cmd | getline myLine;
}
vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.