Problem in making a script
Nils Kassube
kassube at gmx.net
Wed Jun 29 18:35:27 UTC 2011
amritpal pathak wrote:
> Thank you very much .
> it is working now.it is
> replacing the user's input with line number 4's content in abc file
> but it also removes the contents which are after the line number 4
> i.e 5,6,7 so on.everyline gets remove.
> It is not feasible
>
> Why?
Well, there probably is no file "abc" but only "abc.tex" ...
> tail -n $(($LEN - 4)) "abc" >> "$TEMP"
This line should be
tail -n $(($LEN - 4)) "abc.tex" >> "$TEMP"
Nils
More information about the ubuntu-users
mailing list