Dear all
I have three problem please solve
First Problem
suppose I have one file like this
abcd 124 12 1224 1222
def3324
aaaa
ddddd33 333
2
22222
wwwwwwww
ccccccc
dddddd
ffffff
jjjjj
235222
in this file every line is unique. and there are thousand no of lines now I want to view this file starting from text "aaaa" to "fffff" how can i do this.
Second Problem is
one of my script is recording logs to a file every Minuit. now the log file has become too large
Now I want that my script shoud stop recording logs when it completed 10000 no of lines to that perticular file and should use another file instead of the first
please suggess..
third problem
one of my script is creating file regularty in a director by name filename.$i where $i is incremental up to unilimited now i want that my directory
should have only ten files if eleventh file is created by script then the first one (oldest onle ) file should be deleted automatically
please suggess
thaks
I have three problem please solve
First Problem
suppose I have one file like this
abcd 124 12 1224 1222
def3324
aaaa
ddddd33 333
2
22222
wwwwwwww
ccccccc
dddddd
ffffff
jjjjj
235222
in this file every line is unique. and there are thousand no of lines now I want to view this file starting from text "aaaa" to "fffff" how can i do this.
Second Problem is
one of my script is recording logs to a file every Minuit. now the log file has become too large
Now I want that my script shoud stop recording logs when it completed 10000 no of lines to that perticular file and should use another file instead of the first
please suggess..
third problem
one of my script is creating file regularty in a director by name filename.$i where $i is incremental up to unilimited now i want that my directory
should have only ten files if eleventh file is created by script then the first one (oldest onle ) file should be deleted automatically
please suggess
thaks
Comment