Snippets of the day – Tuesday, January 14, 2014

Posted on Posted in Snippets

snip2code-scissors-text
Here are some of the most recently published snippets!

Java split a string by new line

How to split a string by new line

Open the snippet

Author:    mporru

smbclient to remotely copy from linux to windows env

This script allows to keep synchronized a windows based client with a linux machine.
Details for smbclient command:
-U: set the credentials to login
-c: execute a command (between quotes)

The command executed includes:
-lcd: set the specified directory to local machine
-mput: copy one or more local files to the remote computer

Open the snippet

Author:    lbottaro

Leave a Reply

Your email address will not be published. Required fields are marked *