Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: RavinderSingh13
5,167
Posted By RavinderSingh13
Hello jcdole, Yes, that could be shorten to...
Hello jcdole,

Yes, that could be shorten to following.

MY_PATTERN="="
SOME_VAR=$(awk -F"$MY_PATTERN" '{split($1,array," ");print array[3]}' Input_file)
echo "$SOME_VAR"


Thanks,
R. Singh
Showing results 1 to 1 of 1

 

Featured Tech Videos

All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy