TheDevopsGuy
Posts: 681 +195
Hi All,
Currently configuring a new script.
Im currently capturing a variable from user input and storing it in variable "schemaname"
I want to use this variable to search in a directory and execute all files in said directory containing a certain string.
example if schema a is selected execute something like
ls | grep *a* > schema.txt
I want to then iterate through the schema.txt file in the particular directory and execute a command any clue what would be the best practice for this?
Currently configuring a new script.
Im currently capturing a variable from user input and storing it in variable "schemaname"
I want to use this variable to search in a directory and execute all files in said directory containing a certain string.
example if schema a is selected execute something like
ls | grep *a* > schema.txt
I want to then iterate through the schema.txt file in the particular directory and execute a command any clue what would be the best practice for this?