Configuration Guides >> Network Management Configuration Guide Library >> Cisco IOS Shell
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ios_shl/configuration/15-mt/ios-shl-15-mt-book.html
Router#sh ip int b | grep up ^ % Invalid input detected at '^' marker.Router#terminal shell Router# Router#sh ip int b | grep up | wc -l 6 Router#man (( evaluate a numeric test expression IOS.sh The IOS shell [[ evaluate a logical test expression cat output data from a pipe or file to the terminal compatibility compatibility information on IOS.sh control control constructs in IOS.sh cut edit piped output echo echo arguments to the terminal expressions usage of expressions in IOS.sh false return false in while or if expressions, and set the result fetch return values from the configuration database for IOS.sh for loops functions IOS.sh function facility grep search for regular expressions in piped output or files head print the first lines in the input if-else IOS.sh if command interface print interfaces that match the argument let evaluate a numeric expression, and set the result man print information for builtins more page piped output to the terminal nl number the lines in the input null ignore the input printf output formatted data to the terminal quoting IOS.sh quoting facility read read input into variables scripting how to script the IOS CLI set_oper set operational values sleep pause execution of the terminal sort sort the input tail print the tail of the input true return true in while or if expressions, and set the result uname print system information variables usage of variables in IOS.sh wc count lines, words, and chars while iterate while an expression is TRUERouter# Router#terminal no shell Router#sh ip int b | grep up | wc -l ^ % Invalid input detected at '^' marker.Router#
Comments (0)