same thing as the other
tutorial @ http://www.regular-expressions.info/lookaround.html also see @ http://stackoverflow.com/questions/5080988/how-to-extract-string-following-a-pattern-with-grep-regex-or-perl for tip: `grep -Po 'name="\K.*?(?=")' file.txt` Show Sample Output
use this to avoid executing the target app
On wired connections set 'eth0' instead of 'wlan0'
On Windows 2000 or newer, you can use the command line to save the current network interface info. You can then edit the text file and re-apply it using the netsh -f command (or netsh exec). Keep a bunch of text files around to quickly switch connection info without using extra software. http://en.wikipedia.org/wiki/Netsh http://support.microsoft.com/kb/242468 http://thelazyadmin.com/blogs/thelazyadmin/archive/2005/04/04/Using-Netsh-to-Manage-Network-Interfaces-Part-2.aspx Show Sample Output
Newer versions of Dropbox let you choose the location for your Dropbox folder. If you use script to put things into your Dropbox folder (todo list, screenshots, torrents etc.) but have the Dropbox folder in different locations on your other computers this lets you use the same script on all systems without having to tell it where the Dropbox folder is. Show Sample Output
solution that works for me
a pretty simple script when running java programs from command line Show Sample Output
I find the other timers are inaccurate. It takes some microseconds to perform the date function. Therefore, using date/time math to calculate the time for us results in millisecond accuracy. This is tailored to the BusyBox date function. May need to change things around for GNU date function. Show Sample Output
Add z to the flags to enable compression.
using tail first won't do it because tail counts from the bottom of the file. You could do it this way but I don't suggest it
(1) don't run twice, or the same folder will occur in $PATH. (2) otherwise you need to start a new terminal Show Sample Output
Works in RHEL5 and derivatives.
I will ssh to ip address 192.168.2.1 with user name user. "connect user 192.168.1.1" is same as "ssh user@192.168.1.1"
logtop show number of lines per second, also classify them so you can show a "top" of every aspect of your logfile : tail -f access.log | awk '{print $1; fflush();}' | logtop
this command will beep like an alarm for one minute from 18:57. you can change "1857" to your desired time. you should have alsa-oss package installed, and you should also be root or part of "audio" group.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: