Check These Out
This commando copies the file (which must reside in the current directory) to //<server>/<share-name>/<subdirectory>/<file> through the CIFS protocol (Samba share or Windows Share). It doesn't require you to mount the filesystem first.
--directory "<subdirectory>" may be omitted in order to copy the file the the root of the share.
The "%password" part may also be omitted. If doing so, smbclient will ask for the password interactively.
To copy a file from a Windows/Samba share, change "put" for "get".
$ smbclient --user=user%password --directory "<subdirectory>" --command "get <file>" //<server>/<share-name>
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
This is my favorite music player I use in my beloved Linux systems,server or desktop
Enjoy :-)
Put the cursor on either curly braces ( {, } ). Then press d%
The d is delete command, and % is movement command that move the cursor to another matching parentheses (or curly braces in this case). This action will delete every character that was on the way of the movement (from the first curly braces to the second).
The above is an example of grabbing only the first column. You can define the start and end points specifically by chacater position using the following command:
$ while read l; do echo ${l:10:40}; done < three-column-list.txt > column-c10-c40.txt
Of course, it doesn't have to be a column, or extraction, it can be replacement
$ while read l; do echo ${l/foo/bar}; done < list-with-foo.txt > list-with-bar.txt
Read more about parameter expansion here:
http://wiki.bash-hackers.org/syntax/pe
Think of this as an alternative to awk or sed for file operations
This works on all versions of python 2.X.
Tested on Linux and bundled python versions on Mac OSX and Solaris / UNIX
Note: Serves globally on port 8000.
Ctrl+c to stop.
Don't start the server and leave it on a internet connected machine. :)
this method should be the fastest
This is the most straightforward approach: first regexp limits dictionary file to words with thirteen or more characters, second regexp discards any words that have a letter repeated. (Bonus challenge: Try doing it in a single regexp!)