I need to save the output of this command into a variable
$scriptName | awk '{split($0,a,"_"); print a[1]}'
I tried to do this but it didn’t work
schema=$( $scriptName | awk '{split($0,a,"_"); print a[1]}' )
can please someone tell me out to do that? thank you.
Here’s a slightly simpler way: