Search Results

Search: Posts Made By: Sally[-_-]
2,678
Posted By aigles
Another way: for i in `ls newestconfigs/ | grep...
Another way: for i in `ls newestconfigs/ | grep confg`
do
awk '
/^hostname/ { host=$2 ; next }
/^interface (Loopback0|Vlan80)/ { getIp=1 ; next }
getIp { print host ": " $2 ;...
3,051
Posted By jim mcnamara
ls | awk -F'_' ' { arr[$1]++ } END {for(i in...
ls | awk -F'_' ' { arr[$1]++ } END {for(i in arr) { print i, arr[i] } } '
3,051
Posted By malcomex999
Try if i understand you correctly... ls -1 |...
Try if i understand you correctly...

ls -1 | awk -F\_ '{print $1,++arr[$1]}'
Showing results 1 to 3 of 3

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