Thanks Kai, I did the same as suggested by you to find the ifcfg-* but when i register the variable say result. the output of the result variable shows the entire list of attributes of the file, we need to get only the name of the interface but what the output is as below..could you please suggest as to how to curtail the output to give interface name:
the output shows as below :
{
"atime": 1511964673.1590006,
"ctime": 1511420044.9254873,
"dev": 2051,
..................................
"isreg": true,
"issock": false,
"isuid": false,
"mode": "0644",
"mtime": 1511420044.9214873,
"nlink": 1,
"path": "/etc/sysconfig/network-scripts/ifcfg-eno16777736",
"rgrp": true,
"roth": true,
}
{
"atime": 1511964673.1320007,
"ctime": 1511852951.9169016,
"dev": 2051,
"gid": 0,
"inode": 101194774,
"isblk": false,
"issock": false
.....................
"isuid": false,
"mode": "0644",
"mtime": 1511852951.9169016,
"nlink": 1,
"path": "/etc/sysconfig/network-scripts/ifcfg-Ethernet_connection_1",
"rgrp": true,
"roth": true,
"rusr": true,
}