Jump to content

Babu Unix Vachina Vaallu Vunnara Ikkaada


pandemkodi

Recommended Posts

[quote name='ronitreddy' timestamp='1331582015' post='1301508466']
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?
[/quote]
complete file name adi

and R pakkana vunna number records

R0 vuntey zero records
R5 vuntey 5 records

txt tarvata di timestamp


T1 anedi just file ala generate avutondi anthey

Link to comment
Share on other sites

  • Replies 39
  • Created
  • Last Reply

Top Posters In This Topic

  • pandemkodi

    21

  • Gachibowli_Diwakar

    11

  • ronitreddy

    5

  • robo

    2

Popular Days

Top Posters In This Topic

[quote name='Silence..Please' timestamp='1331580381' post='1301508313']
no.of rows ki aithe use below
sed -n '$=' <file_name>

inka total kaavaali ante ..[b] ls -ltr abc* | wc -l[/b]

date of the file which got updated most recently ante .. ls -ltr abc*
[/quote]
deeniki total count raavatledu baa oka file count istondi adi

Link to comment
Share on other sites

[quote name='pandemkodi' timestamp='1331582634' post='1301508525']
deeniki total count raavatledu baa oka file count istondi adi
[/quote]aah specific set of name tho unde files ki aithe abc* use chesthaav ... aah directory lo unde anni files count kaavaali ante du -a | wc -l

Link to comment
Share on other sites

[quote name='Silence..Please' timestamp='1331582835' post='1301508544']
aah specific set of name tho unde files ki aithe abc* use chesthaav ... aah directory lo unde anni files count kaavaali ante du -a | wc -l
[/quote]
yaaa anthey aa specific set of files ki adi use chesa
appudu particular gaa oka file count vastondi
example 4 files vunnai xyz ani

but okkadaani count ee vastondi

Link to comment
Share on other sites

ila anukuntunanu baa, let me know if i have understood it correctly or not ani..

[b]Sample input:[/b]
abccdf.D2.T1.R0.txt201201271220
abccdf.X3.S2.R5.txt201203121530
bcdtfgh.Y7.I7.R3.txt201102021567

$ script abccdf*

[b]Output:[/b]
File Name Total Files Count Date
abccdf.D2.T1.R0.txt201201271220 2 0 20120127
abccdf.X3.S2.R5.txt201203121530 2 5 20120312

$ script bc*
File Name Total Files Count Date
bcdtfgh.Y7.I7.R3.txt201102021567 1 3 20110202

Link to comment
Share on other sites

[quote name='ronitreddy' timestamp='1331583089' post='1301508566']
ila anukuntunanu baa, let me know if i have understood it correctly or not ani..

[b]Sample input:[/b]
abccdf.D2.T1.R0.txt201201271220
abccdf.X3.S2.R5.txt201203121530
bcdtfgh.Y7.I7.R3.txt201102021567

$ script abccdf*

[b]Output:[/b]
File Name Total Files Count Date
abccdf.D2.T1.R0.txt201201271220 2 0 20120127
abccdf.X3.S2.R5.txt201203121530 2 5 20120312

$ script bc*
File Name Total Files Count Date
bcdtfgh.Y7.I7.R3.txt201102021567 1 3 20110202
[/quote]

i/p
abccdf.D2.T1.R0.txt201201271220
abccdf.D2.T1.R5.txt201203121530
bcdtfgh.D2.T1.R3.txt201102021567


o/p
abccdf.D2.T1.R0.txt201201271220 2 5 date




bcdtfgh.D2.T1.R3.txt201102021567 1 3 date

Link to comment
Share on other sites

[quote name='ronitreddy' timestamp='1331583755' post='1301508615']
time constraints emina unnaya baa..leka urgent aa??
[/quote]
ledu baa repu ichina ok

Link to comment
Share on other sites

[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]

ikkada wordcount ki wc -l filename pedithey vastadi kada
sed enduku baa

Link to comment
Share on other sites

[quote name='pandemkodi' timestamp='1331584763' post='1301508693']

ikkada wordcount ki wc -l filename pedithey vastadi kada
sed enduku baa
[/quote]niku oka file lo enni rows unnaayo teliyali kadha ba .. dhaani ki wc kadhu ..

Link to comment
Share on other sites

[quote name='Silence..Please' timestamp='1331584861' post='1301508703']
niku oka file lo enni rows unnaayo teliyali kadha ba .. dhaani ki wc kadhu ..
[/quote]
baa nuvvu ichina ee two commands zip file ki cheppava


sed -n '$=' filename

ls -ltr filename*|wc -l

ivi zip file ki cheppava konchem thanks

Link to comment
Share on other sites

[quote name='pandemkodi' timestamp='1331588083' post='1301508999']
baa nuvvu ichina ee two commands zip file ki cheppava


sed -n '$=' filename

ls -ltr filename*|wc -l

ivi zip file ki cheppava konchem thanks
[/quote]you mean .. zip file lo yenni files unnaayo telusukoovaala ? lekapothe .zip or .gz extension tho unde files count kaavaala ?

Link to comment
Share on other sites

[quote name='Silence..Please' timestamp='1331589012' post='1301509069']
you mean .. zip file lo yenni files unnaayo telusukoovaala ? lekapothe .zip or .gz extension tho unde files count kaavaala ?
[/quote]
rendu okatey kada

naaku .zip ki kaavali baa

Link to comment
Share on other sites

[quote name='pandemkodi' timestamp='1331589166' post='1301509084']
rendu okatey kada

naaku .zip ki kaavali baa
[/quote]zip file lo yenni kaavaali ante .. for example abc.zip ani undhi anuko .. multiple files ni zip chesi abc.zip lo pedathaam kadha .. so aah count of files aah kaavaali antunna .. if so, naku teleedu ba .. unzip cheyyaalsindhe as far as I know

alaa kadhu .. .zip tho unde extension files antaava .. du -a | grep .zip | wc -l

Link to comment
Share on other sites

[quote name='Silence..Please' timestamp='1331589295' post='1301509092']
zip file lo yenni kaavaali ante .. for example abc.zip ani undhi anuko .. multiple files ni zip chesi abc.zip lo pedathaam kadha .. so aah count of files aah kaavaali antunna .. if so, naku teleedu ba .. unzip cheyyaalsindhe as far as I know

alaa kadhu .. .zip tho unde extension files antaava .. du -a | grep .zip | wc -l
[/quote]
ok thanks baa

Link to comment
Share on other sites

×
×
  • Create New...