This commands will make it easier to select only common items between two files being compared. If your lines start with things other than lowercase a-z, adjust this Regex appropriately. Number of lines in the output has been set to no more than 10000, and should be adjusted as needed.
This is a little bash script that will take all files following the *gz pattern in the directory and apply the tar -zxvf command to them.
No need for -l and the output can be sent directly into another function expecting directory names. Show Sample Output
Similar, but uses tarball instead of zip file
Put in your path (.bashrc or similar). Then instead of running '$ git-commit -m ' use '$ git-random'
Works in all shells. Does not require a test. Handles like an assertion. Show Sample Output
OMG, you are a Gentoo junkie. -funroll-loops-me-harder ;-) http://ccache.samba.org/ ccache is a compiler cache, which speeds up your compiler on successive runs, because it caches intermediate compiled output. Show Sample Output
It is a much better tool then nslookup for getting information about the any site.It has got better capability too.For reverse information please use the switch "-x" and the ip address. Show Sample Output
This will recursively go through every file under the current directory showing all lines containing "TODO" as well as 10 lines after it. The output will be marked with line numbers to make it easier to find where the TODO is in the actual file.
Just tape: sudo -s your passwd startx -- :1
First you need to instal aircrack-ng Use this command if you need to put your wireless card into monitor mode. interface = wlan0 || wifi0 || ath0 et ceatera... channel = 6, 11, 10, 9 et ceatera
This assumes there is only one result. Either tail your search for one result or add | head -n 1 before the closing bracket. You can also use locate instead of find, if you have locate installed and updated
Usually the MS-DOS cmd.exe processes in the whole FOR loop as one command and expands each var like %varname% in before (except the loop var of course).
This command enables expansion of other vars than only the loop var during the FOR loop. The syntax of the var to expand is then !varname! inside the FOR loop.
Use command
endlocal
to end the setlocal command.
E.g. (only works from batch files, not from commandline directly):
@echo off
setlocal enabledelayedexpansion
FOR %%A IN (*) DO (
set file=%%A
echo !file!
)
endlocal
Jan Nelson from Grockit came up with this for us when we needed to rename all of our fixtures.
Grep for a TAB . -- www.fir3net.com --
Removing .svn directories without a pipe
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: