![]() |
Feel free with Open Source SoftwareAndries Filmer - Internet professional sinds 1996.
|
|
|
|
Bash Shell commandline - The power off shellSometimes I discover a command that is uncommon and very useful. Then I make a note on this page. Nothing special but mabye it's also new for you too. This page is a start to ask the man pages for more info.
WebServe current directory tree at http://$HOSTNAME:8000/python -m SimpleHTTPServer
String operationsThis is a example how powerful stringoperations are.
#!/bin/bash
#
# Get ipaddress from ipconfig
x=`/sbin/ifconfig`
y=${x#*inet addr:}
y=${x#*eth0 *inet addr:}
y=${y%% *}
echo $y
Search google bash stringoperations.
File processingIf there are a large amount of files in a directorie you can't remove them, use a loop instead; for i in *; do rm $i;done To cut off a range of characters in a file you can do: cut -b 1-2 --complement bazaar.txt
ImagesA separate page for images
Links
I appreciate if you give some comment about this page. Please go ahead. |
|
Andries Filmer | http://andries.filmer.nl | andries@filmer.nl | © 2011
|