I am looking for a command which would get the result of whether there is a space present in the variable or not in awk. I am not looking for
split(variable,array," ")
and then traversing this array to find it .. I am looking for a more efficient way . Could anyone guide me regarding this. Thank you.
You could use the awk
index()string function to search for a target string:From the docs above: