pandemkodi Posted March 12, 2012 Report Share Posted March 12, 2012 nakoka script kaavali Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [color=#282828][font=helvetica, arial, sans-serif]naaku filepath filename ishtey[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]aa file name, toal files ,count ,date raavali[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]total files ani enduku annanatey[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]file name anedi single file avvachu or file patteren avvachu[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]for example abc.txt or abc.* ila inka aaa file zip file ooo kaado kuda check cheyyali [/font][/color] [color=#282828][font=helvetica, arial, sans-serif]so please help [/font][/color] Link to comment Share on other sites More sharing options...
Gachibowli_Diwakar Posted March 12, 2012 Report Share Posted March 12, 2012 total files ki .. count ki difference enti ba nee req lo ? be more specific with an example .. Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 count antey okko file lo vunna no of rows baa total files antey no of files baa maaku files ila vastai abccdf.D2.T1.R0.txt201201271220 R 0 ani vundi gaa adi count annamaata---->total records in a file ani ex R2 ani vuntey 2 records vunnai file lo txt tarvata di date baa adi vishayam nenu input lo single file name ivvochu or file pattern ivvochu ex abccdf.D* or abccdf.D2.T1.R0.txt201201271220 Link to comment Share on other sites More sharing options...
Gachibowli_Diwakar Posted March 12, 2012 Report Share Posted March 12, 2012 [quote name='pandemkodi' timestamp='1331580272' post='1301508311'] count antey okko file lo vunna no of rows baa total files antey no of files baa [/quote]no.of rows ki aithe use below sed -n '$=' <file_name> inka total kaavaali ante .. ls -ltr abc* | wc -l date of the file which got updated most recently ante .. ls -ltr abc* Link to comment Share on other sites More sharing options...
ronitreddy Posted March 12, 2012 Report Share Posted March 12, 2012 Your question is unfortunately too vague to answer, please give us more information inorder to help you. Include as much information as possible in your post. We just need the sample file, sample output.. Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [color=#282828][font=helvetica, arial, sans-serif]abccdf.D2.T1.R0.txt201201271220 idi naa sample file [/font][/color][color=#282828][font=helvetica, arial, sans-serif]nenu[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]nenu aa file nmae kaani path kaani istha input gaa[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]appudu naaku [/font][/color][color=#282828][font=helvetica, arial, sans-serif] file name, toal files ,count ,date raavali[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]for example abccdf.D* ani ichauanuko akkada 3 files vuntey theree files names and toal files as 3 and count vachi theree file lo sum kaavali and date [/font][/color] Link to comment Share on other sites More sharing options...
Gachibowli_Diwakar Posted March 12, 2012 Report Share Posted March 12, 2012 [quote name='pandemkodi' timestamp='1331581143' post='1301508369'] [color=#282828][font=helvetica, arial, sans-serif]abccdf.D2.T1.R0.txt201201271220 idi naa sample file [/font][/color][color=#282828][font=helvetica, arial, sans-serif]nenu[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]nenu aa file nmae kaani path kaani istha input gaa[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]appudu naaku [/font][/color][color=#282828][font=helvetica, arial, sans-serif] file name, toal files ,count ,date raavali[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]for example abccdf.D* ani ichauanuko akkada 3 files vuntey theree files names and toal files as 3 and count vachi theree file lo sum kaavali and date [/font][/color] [/quote]nenu payina ichinavi anni oka script lo pettey ba .. inka <file_name> place lo $1 ani pettu .. so nuvu execute chesetapudu .. <script_name> <file_name> ani isthaav .. okkoo functionality ki mundhu echo statement pettesko Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [quote name='Silence..Please' timestamp='1331580381' post='1301508313'] no.of rows ki aithe use below [b]sed -n '$=' <file_name>[/b] inka total kaavaali ante .. ls -ltr abc* | wc -l date of the file which got updated most recently ante .. ls -ltr abc* [/quote] file cannot ba parsed antondi baa Link to comment Share on other sites More sharing options...
ronitreddy Posted March 12, 2012 Report Share Posted March 12, 2012 [quote name='pandemkodi' timestamp='1331581143' post='1301508369'] [color=#282828][font=helvetica, arial, sans-serif]abccdf.D2.T1.R0.txt201201271220 idi naa sample file [/font][/color][color=#282828][font=helvetica, arial, sans-serif]nenu[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]nenu aa file nmae kaani path kaani istha input gaa[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]appudu naaku [/font][/color][color=#282828][font=helvetica, arial, sans-serif]file name, toal files ,count ,date raavali[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]for example abccdf.D* ani ichauanuko akkada 3 files vuntey theree files names and toal files as 3 and count vachi theree file lo sum kaavali and date [/font][/color] [/quote] Is the text file appended with a date? Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [quote name='ronitreddy' timestamp='1331581633' post='1301508421'] Is the text file appended with a date? [/quote] yaa baa [color=#282828][font=helvetica, arial, sans-serif][size=3]abccdf.D2.T1.R0.txt201201271220 txt tarvata dhi timestamp[/size][/font][/color] Link to comment Share on other sites More sharing options...
Gachibowli_Diwakar Posted March 12, 2012 Report Share Posted March 12, 2012 [quote name='pandemkodi' timestamp='1331581515' post='1301508407'] file cannot ba parsed antondi baa [/quote]$ sed -n '$=' gg_crontab_check.ksh 65 naku ochina output ni as it is ga paste chesa Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [quote name='Silence..Please' timestamp='1331581728' post='1301508434'] $ sed -n '$=' [b]gg_crontab_check.ksh[/b] 65 naku ochina output ni as it is ga paste chesa [/quote] nenu aa bold place lo file name icha baa Link to comment Share on other sites More sharing options...
ronitreddy Posted March 12, 2012 Report Share Posted March 12, 2012 D2.T1.R0 - complete ga filename aa idi leka D2,T1 R0 different aa.. D2 ante 2 records in a file D aa? T1 ante 1 record in a file T aa? Link to comment Share on other sites More sharing options...
pandemkodi Posted March 12, 2012 Author Report Share Posted March 12, 2012 [quote name='Silence..Please' timestamp='1331581728' post='1301508434'] $ sed -n '$=' gg_crontab_check.ksh 65 naku ochina output ni as it is ga paste chesa [/quote] chorry baa work avutiondi ee stmt Link to comment Share on other sites More sharing options...
Recommended Posts