Sponsored Content
Full Discussion: SQL Injection Detection
Top Forums Shell Programming and Scripting SQL Injection Detection Post 302906222 by RudiC on Wednesday 18th of June 2014 06:51:49 AM
Old 06-18-2014
Quote:
Originally Posted by koutroul
this does not ignore case of letters (not specified) and I think it returns single occurrences based on the output (not true)
Anyhow - try
Code:
awk 'NR==FNR {SRCSTR=SRCSTR DELIM $0; DELIM="|"; next} {X=tolower($0)} gsub (SRCSTR,"&",X)==2'

And, before you complain that "Delete..." line is not there: it has three occurrences of keywords and thus does not meet the specification. Adaption of the proposal to this case is left to you.
 
set_color(1)							       fish							      set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 06:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy