Search Results

Search: Posts Made By: mnnarendra
4,221
Posted By mnnarendra
advanced unix find
The find should search only for directories modified down to two levels.
I tried max depth, but it is not working.

find $div/users -type d -mtime +1 -maxdepth 2
4,221
Posted By mnnarendra
unix find command
I need help with tweaking the unix find command. currently the find command searches all the directories under $div/users modified in the last 1 day.

find $div/users -type d -mtime +1

I need...
3,498
Posted By mnnarendra
unix find command
I need help with tweaking the unix find command. currently the find command searches all the directories under $div/users modified in the last 1 day.

find $div/users -type d -mtime +1

I need...
2,550
Posted By mnnarendra
Thank you
It works now. Thank you.
2,550
Posted By mnnarendra
modify and use awk sed program
The following awk script creates a file b.dat.

awk '{print substr($0,1,27),substr($2,index($2,"_")+1)," ",substr($0,49)}' a.dat > b.dat

I need this script to be modified to also sum $3 values...
3,483
Posted By mnnarendra
sum with fixed length
i need help with the following awk program needs to be modified to enforce fixed length of 8 char for the sum[i].

awk '{sum[substr($0,1,27),$2] += $3} END {for (i in sum) {print i," ...
3,483
Posted By mnnarendra
syntax
The following awk syntax works, but i need this script to be modified to also sum field4 values by distinct field1, field2, field3

awk '{print substr($0,1,27),substr($2,index($2,"_")+1)," ...
3,483
Posted By mnnarendra
unix awk/sed program
i need a sample unix awk/sed program to replace param3 in a file.

i have sample file a.dat with the following format/length (week 8, sku 20, store 20 and qty 8). all store id's which end with _2...
Showing results 1 to 8 of 8

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