Routerdark
Technical User
for I in MAY JUN JUL AUG; do echo $I; cat final_subscriber_mOP.txt | grep -v -e rows -e --- -e s|awk '$1 ~ /$I/ {print $1, $2}' | sort -n | uniq -c; done
Thank you for support.
Thank you for support.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]master #[/blue] I='Something'
[blue]master #[/blue] echo '$1 ~ /$I/ {print $1, $2}'
$1 ~ /$I/ {print $1, $2}
[blue]master #[/blue] echo [highlight]"[/highlight]$1 ~ /$I/ {print $1, $2}[highlight]"[/highlight]
~ /Something/ {print , }
[gray]# interrupt the single quotes around the shell variable and quote it with double quotes[/gray]
awk '$1 ~ /[highlight]'[red]"[/red][/highlight]$I[highlight][red]"[/red]'[/highlight]/ {print $1, $2}'
[gray]# escape everything you not want the shell to expand[/gray]
awk "[highlight]\[/highlight]$1 ~ /$I/ {print [highlight]\[/highlight]$1, [highlight]\[/highlight]$2}"
[gray]# define an Awk variable from outside, using the [b]-v[/b] ( or [b]--assign[/b] ) option[/gray]
awk [highlight]-vJ="$I"[/highlight] '$1 ~ [highlight]J[/highlight] {print $1, $2}'
[gray]# export the variable ( using the [b]export[/b] shell builtin ) so Awk can access it as environment variable[/gray]
awk '$1 ~ [highlight]ENVIRON["I"][/highlight] {print $1, $2}'