Search Results

Search: Posts Made By: arun.ijhs.klm
2,396
Posted By arun.ijhs.klm
Try the given code
Please make sure to test this before using it in live environments.


#!/bin/ksh
SRCDIR=./src
DSTDIR=./dest
for matchstr in `ls -lrt ${DSTDIR} | grep ^d | awk '{ print length($9) "," $9; }' |...
7,901
Posted By arun.ijhs.klm
Change code as below
Change
printf("%d, %d, %d, %d, %d, %d, %f\n", a, c, d, cnt, minh, maxh, avgh);
to
printf("%d, %d, %d, %d, %d, %d, %5.2f\n", a, c, d, cnt, minh, maxh, avgh);
7,901
Posted By arun.ijhs.klm
Please try the below code
#!/bin/ksh
#cat inpfile | cut -d"," -f1,3,4 -s | uniq
INPFIL=./inpfile
print "A , C, D,Diff_count,min(H column),max(H column),AVG(H column)"
for ind in `cat ${INPFIL} | cut -d"," -f1,3,4 -s |...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy