bash for do done AIX
Article Number: 214 | Rating: Unrated | Last Updated: Mon, Jun 4, 2018 11:43 PM
for i in `lsdev -Cc adapter | egrep "^ent" | awk '{ print $1 }'` ; do echo "#### $i ####" ; lsattr -El $i ; echo "#### ####" ; done
Posted - Mon, Jun 4, 2018 12:10 PM. This article has been viewed 1461 times.
Filed Under:
Scripts
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Related Articles

Epoch & Unix Timestamp Conversion Tools
Viewed 43123 times since Fri, Jun 22, 2018
Unix - Examples for grep command
Viewed 2423 times since Fri, Jun 8, 2018
Convert CSV to JSON with bash script
Viewed 4610 times since Mon, Jan 20, 2020
Convert CSV to JSON with jq
Viewed 25807 times since Mon, Jan 20, 2020
Convert JSON to CSV with bash script
Viewed 11374 times since Mon, Jan 20, 2020
O’Reilly’s CD bookshelf
Viewed 11022 times since Wed, Jun 27, 2018
Unix - eval command example
Viewed 1584 times since Fri, Jun 8, 2018