Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.
Hide

Stay in the loop…

Follow the Tweets.

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

Subscribe to the feeds.

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:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

find str in in a directory which file extension is .php

Terminal - find str in in a directory which file extension is .php
ack --type=php <string>
2013-03-20 20:27:31
User: khayyam
0
find str in in a directory which file extension is .php

The 'sample output' shows the file(s) found and the line at which '' was found (for the example I used the 'string'.)

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
find ./ -type f -name "*.php" | xargs grep -n "name" -r {}

Know a better way?

If you can do better, submit your command here.

What others think

Extell Growth obtained a couple of ways much better getting the go-ahead through the metropolis about its Three or more.1 million-square-foot Riverside Center task, along with single approval from a couple City Authorities committees. Your 'yes' ballots through the Committee on Terrain Work with and also the Subcommittee on Zoning along with Companies usually are confident signs to the task as it mind to some last vote by the whole Town Authority later this particular month.Perhaps that it was the moms custom modeling rendering impact that received him or her to everything about vogue designing (much more exactly, handbags!). Early on, to be a childhood he or she noticed that the particular handbag arena however you like demonstrates hasn't been exhibited considerably and therefore there were a massive possible in the exact same if perhaps promoted very well. In which thought possibly experienced planted your seed of the extravagance handbag brand name in his head! Your Kors within his name derives from his new mother who had previously been Joan Hamburger Anderson Kors Krystosek a well known design then.Brooke Astor's 14-room duplex in 778 Car park Avenue, as soon as listed for $46 thousand, is currently within long term contract. Your house, that can the 15th and also Sixteenth surfaces with the Rosario Candela-designed developing, has become out there considering that Astor perished with 07, recently, for $24.In search of million.Marc Ecko watches have been a status image this also craze will be exhibiting a great upwards progress time and time again. Most of these highly modern watches are available in variations, types, colors in addition to products. His or her manufacturer product line consists of wristwatches of several substance including platinum, sterling silver, american platinum eagle along with titanium. Marc Ecko watches comes with a number of watches for men which can be both equally tough and wise. If your guy enjoys gentle designer watches you will then be astounded by the decision supplied by this brand. Pick view of one's beloved coloration and material sort in addition to gift idea a new revered timepiece to your lover.The Europe bag bags can be purchased in slouchy models manufactured from gentle leather using band type handles. The actual bag in python precious metal synthetic leather is definitely the two ample and stylish within style and design and will be the excellent on the move tote for virtually every woman which likes to go shopping. The actual bags inside Darrington collection http://www.hermesbeltsbirkinkellybag.co.uk/ have a trendier design using silver set off buckles along with band working all across the the front floor. The particular silver accents glimpse especially stunning while officially used on some sort of dark surface area. These things also provide facet pouches that come with zippered closures.Google paid $1.77 zillion with funds for its brand new company at One hundred and eleven Eighth Path. Yahoo and google may enjoy 550,1,000 square feet inside A couple of.In search of million-square-foot Several weeks constructing, situated among Fifteenth and 16th avenues. Yahoo capacity to shell out cash assisted that reach your goals in the purchase.For these planning to stick to meeting, having a easy oblong kind is the ideal thing to do. Do not opt for those having a reddish end or maybe the uneven tones. A straightforward glowing end is the greatest strategy to use. However, for all those looking to furthermore sketch some interest, a stunning white colored finish off over a easy, rounded face could also operate rather effectively. All depends about the assertion that you'll be seeking to create.JER Companions would be to marketplace the $75 thousand mortgage loan with Kent Swig's 60 Extensive Block, placing your embattled developer at risk of shedding this 36-story office. Swig late within the mortgage trapped on tape, and may even come unglued on the Lower New york residence must a buyer pick-up the particular take note and select to help foreclose. This is not initially of which Swig's property involving 80 Extensive Avenue possesses slipped straight into jeopardy. Come early july a new mezzanine loan company attemptedto confiscate the building.

Comment by stephanieg915 3 days ago

Speedily, the particular Pottery View variety was unveiled along with significant people from throughout the world started off advocating it which timepieces turned into a genuine expression of the design and design of the feminine. This specific array is produced with the finest earthenware material along with the high-quality of the wrist watches will be unmatched. Do i think the body and complete of those timepieces which can make that a great present to the female of the desires.This year, women spring season footwear is determined by style and personality. Vibrant colors in addition to excellent routines handle the particular sneakers predicament. Well-liked high end names that have truly performed the most beneficial task involving adhering to the most popular types this particular spring season include Dolce Vita, Maria Sharapova, Handbags Electric outlet, Christian Louboutin, and Giuseppe Zanotti. Nevertheless tag famous brands are only information: effortlessly, the simplest way keep your foot via hunting ugly should be to can recall the almost all preferred patterns regarding early spring The year of 2010 footwears: womens pumps, gladiator shoes, and pitching wedges, oh my!Michael Kors, an award-winning designer for a few Many years, can be almost all successfully comprehended with regard to creating vintage United states sportswear from reasonably priced price ranges. Over the years, he's expanded their distinct merchandise to be able to incorporate high-fashion garments, sneakers along with add-ons males business women ( space ) including things like terrific designer watches.Some of the extremely identifiable signs and symptoms of a basic DKNY watches as well as several other elegant timepieces will be their fee. If you're offered to get a moderately decreased as well as astonishingly famous along expense compared with their rate, then you mustn't fail for the offer you. You can find DKNY designer watches that are observed along this also ought to not really puzzle from false ones. Authentic wristwatches have ghd serial numbers, assure, return, or perhaps money-back guarantees. In the event the low-cost wristwatches being provided to you don't have any of these, never ever make an effort to purchase the product or you'll finish up having a fake in addition to hard to rely on enjoy.Skinny cable connections are many chosen now due to the slim match up, white-colored top and thin the particular "mad men" development that's in fact crowded the lads vogue tendency sector. Unless you need to spent money using a style that could not last and then this is the perfect association for you. Kenneth Cole neckties are available with silver precious metal and dark and therefore are very fairly highly valued.The 3rd, the many goods in your store are very cheap.We marketing them at a huge discounted today, A number of them income 70 % away from. In order to help save money to obtain a MK Bags you will possibly not miss out on all of them. If you've found yourself just one on the retailer we are going to syndication at the instant along with cost-free supply no purchase levy, with with regards to 7-10 days to weeks door-to-door.012, day out store "absolutely simply no growth" seems to be your essential terms from the knowledge of the luxurious advancement, have to boost the batteries gotten ready for decades involving epic amounts "deluxe winter weather. But in addition the particular "light deluxe" (MK), they are soaring within the help of growth.Every observe is established to think quite character involving Versace. Versace's utilization of useful and classy gems inside their wrist watches as well as add-ons tend to be large regarding Versace fashion. This wrist watch styles are http://www.hermesbeltsbirkinkellybag.co.uk/ likewise classified simply by beneficial outlines and also typical design and colours including Established frets plus the Medusa. Of these timepieces, time-honored aesthetic appeal matches the particular substance on the fashionable location, creating a clearly modern-day and alluring style.

Comment by stephanieg915 2 days ago

Your point of view

You must be signed in to comment.