Quantcast
Channel: User star - Unix & Linux Stack Exchange
Browsing all 2 articles
Browse latest View live

Comment by star on What does

In the first case, cat opens the file, and in the second case, the shell opens the file, passing it as cat's standard input. quote from unix.stackexchange.com/questions/258931/…

View Article



Answer by star for How can I use (sed|awk) to mask an e-mail address with...

using sed: sed 's/.$//' foo.txt | sed 's#\<\(.\).*\(.@.\).*\(\..*\)#\1***\2***\3#' first sed get rid of the ending >, and 2nd sed will mask the mail address. output J****e@g****.com...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images