update bookmark blog 02/06/2015 (a.m.)

    • Backslash Escapes in Perl

       

       

           
       
       Perl     Usage
       \\       Allow the use of a backslash.
       \"       Double quote.
       \a       Bell.
       \b       Backspace.
       \cN      Any control character (e.g., \cC for Ctrl-C).
       \e       The escape character (character 27).
       \E       End a sequence of \L or \U.
       \f       Formfeed.
       \l       Make the next character lowercase.
       \L       Make following characters lowercase until \E.
               Newline.
       \r       Return.
       \t       Tab.
       \u       Make the next character uppercase.
       \U       Make following characters uppercase until \E.
       NN     Any octal numeric value.
       \xNN     Any hexadecimal numeric value.
       
          
           
           
           
           
         
    • $port=6666 $remoteHost = “server1” $Message = ‘This is a test’ $socket = newobject System.Net.Sockets.TcpClient($remoteHost, $port) $data = [System.Text.Encoding]::ASCII.GetBytes($message) $stream = $socket.GetStream() $stream.Write($data, 0, $data.Length)

Posted from Diigo. The rest of my favorite links are here.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s