Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux pipe string contains

# For null cmd arguments checking   
to_check=' -t'
space_n_dash_chars=' -'
[[ $to_check == *"$space_n_dash_chars"* ]] && echo found
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #pipe #string
ADD COMMENT
Topic
Name
6+5 =