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

Extract XML from an otherwise plain text log file

Terminal - Extract XML from an otherwise plain text log file
sed -n '/<Tag>/,/<\/Tag>/p' logfile.log
2009-07-20 13:24:56
User: sanmiguel
Functions: sed
0
Extract XML from an otherwise plain text log file

If your XML is appended to a line with a time stamp or other leading text irrelevant to the XML, then you can append a s/foo/bar/ command, like this:

sed -n /<Tag>/,/<\/Tag>/p; s/.*\(<Tag.*\)/\1/' logfile.log

Alternatives

There are 4 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

It's been said of which bags call attention to clothes. However does not imply that you will be needed to obtain a full range of designer bags to select all within your outfit. This is how you can have recently five bags with your wardrobe however seem swaying on every occasion that you choose to elegance along with your profile?The essential each day-bag could be the first that you have to obtain. Within this bag you will need to take your entire every day requirements on your perform. Now these kind of needs usually cover anything from place of work papers, windcheaters to be able to recommendations or maybe facial foundation and possibly also lunch time. This means your bag must be big enough to keep your entire things. Isn't it about time choose a reliable formal shade with the bag including blue, green or black that may accompany just about any official wearing to work.If that suits you light colors go pertaining to tan. Make sure that this bag is made up of compartments to support apple ipods, markers as well as USB is. Big designer bags in many cases are expensive and therefore when the prices are also steep for ones choice then go for replicas that happen to be http://www.hermesbeltsbirkinkellybag.co.uk/ strong making it via genuine natural leather.The subsequent most critical custom made bag is really a tote. This bag is often not really something that you take with your bag. It is a tiny tote that may maintain i . d . papers, your own drugs or maybe your current over night cleanliness equipment that you just stay in your car or perhaps in your working environment desk. Such developer bags are actually quite useful notably if you spend extended hours outside the house the house.The 3rd style of bag that is a must inside your cabinet will be the Cross-body sling. These bags are perfect to handle when you're a laid-back day out that has a friend. These kinds of designer bags are perfect if you are embarking on a fun-filled nighttime involving looking or perhaps clubbing.You need to have a number of grabs that one could hold together with your elegant dress wear to help classy sociable events including operas or maybe red rugs. These kinds of envelope-style developer bags need to be sufficient to obtain the cellphone, auto as well as residence keys, mints and charge cards.Now the final one who your own storage room have to incorporate is an overnighter or maybe weekender. These kind of custom bags have ample living space for a night dress, makeup set, hygiene system adjust for just a day or two. Several overnighters furthermore consist of a cushioning section that will hold the laptop or your product.It is evident that when you would like brand name solutions your credit card expenses may possibly shake anyone. Nevertheless you will get most of these custom bags for a much less expensive price. All you want carry out is to show some tolerance and also wait for a conclude connected with period gross sales that can bring the values down simply by almost 50%. Aside from the discount rates you can find various presents which will make your current buys move straightforward with your wallet. A your current desirable goods online in which revenue take place about almost all festive functions.Many most respected leather-based companies also create good quality replicas plus they offer change companies. Just get your own much-loved design from your site and acquire it manufactured by some sort of bag producer. By doing this you'll get the developer bags at a much less expensive selling price.

Comment by stephanieg915 5 days ago

There is a marketing and advertising manufactured goods anyone very likely observe all around the location. They may be something significant amounts of individuals delivers when discovering fitness center or perhaps they are going to conduct a great activity. But many of people utilize them as being an promptly bag as well. On account of simply how much they're comfortable, a good amount of companies are applying these to promote his or her business together with allow people find what they should supply all of them precisely what you actually can perform for the children. This marketing product that lots of corporations are switching to is produced routines give baggage.Though with numerous kinds of created actions side suitcases you will discover designed for organizations to choose from, how is this intending to pick the ones that have been appropriate? Listed below are some different types of produced routines side baggage and exactly how diverse agencies have used them. The tiny created activities hands suitcase is a fantastic creation that any corporation proposes to individuals in industry events in addition to conferences. These types of activities hand baggage normally is certainly not extremely expensive which is usually an element that individuals are likely get pleasure from obtaining through the organization.The medium-sized developed Sewed Activities Bag is one thing which can be used few different aspects. They are some thing can be used as the reward have for bring in individuals straight into determining http://www.hermesbeltsbirkinkellybag.co.uk/ upward with regard to records along with your firm, they may be offered to staff along with buyers since recognition presents, or perhaps they could be presented to going to sales staff because of the firm to try these luggage. The main things to do give suitcases is usually the costliest plus the many complex. These kind of generated actions hand bags need to be saved intended for benefits intended for personnel should they have performed a thing great for the organization and then for customers to thank these foot their own resolve for the organization.There usually are selections of factors why developed routines side suitcases make superb promoting merchandise. One of the factors which actions hands baggage should supply is definitely publicity. Any time a body's using a pursuits bag, men and women all around options intending to understand the title and also the logo produced in that. A different function exactly why businesses know that they'll certainly be a fantastic promoting product is the situation that they can be of use. Set up person is while using the things to do bag to adopt their things to do item around in as well as they will very likely help it as being a prospective immediately bag, tag heuer witnesses that it's usually utilized.Every period the organization stimulates alone having generated activities side luggage, they are going to very likely notice that they could be making a extremely fantastic solution. They may be an element that could almost definitely encourage their firm knowing that everyone is likely to employ. Add the 2 factors to the condition harm different methods the corporation will use the theifs to promote their particular group and also you discover that made things to do palm suitcase absolutely are a incredibly excellent advertising solution. Promotion remains safe and secure way up and also sitting away together with produced things to do palm suitcases.

Comment by stephanieg915 5 days ago

http://www.canadagoosefemmehomme2016.fr/expedition-parka-canada-goose_210.html,http://www.canadagoosefemmehomme2016.fr/vente-doudoune-canada-goose-femme_197.html,http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-femmes_189.html,http://www.canadagoosefemmehomme2016.fr/parka-montebello-canada-goose_379.html,http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-prix_332.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-jogging_460.html,http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-pas-cher_42.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-bonnet_135.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-mystique-femme_179.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-homme_161.html,http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-prix_395.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-style_105.html,http://www.canadagoosefemmehomme2016.fr/nouvelle-canada-goose_193.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-promotion-france_98.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-bomber-chilliwack_119.html,http://www.canadagoosefemmehomme2016.fr/,http://www.canadagoosefemmehomme2016.fr/canada-goose-montebello-parka_81.html,http://www.canadagoosefemmehomme2016.fr/vetements-canada-goose_64.html,http://www.canadagoosefemmehomme2016.fr/kensington-canada-goose_234.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-stockholm_43.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-trillium_454.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-femme-occasion_464.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-occasion_413.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-rennes_423.html,http://www.canadagoosefemmehomme2016.fr/doudoune-style-canada-goose_283.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-fabrication_275.html,http://www.canadagoosefemmehomme2016.fr/doudoune-style-canada-goose-femme_388.html,http://www.canadagoosefemmehomme2016.fr/trillium-parka-canada-goose_108.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-femme_305.html,http://www.canadagoosefemmehomme2016.fr/acheter-canada-goos

Comment by sguerra376 4 days ago

www.canadagoosefemmehomme2016.fr/canada-goose-freestyle_324.html

www.canadagoosefemmehomme2016.fr/parka-homme-canada-goose_84.html

www.canadagoosefemmehomme2016.fr/tuque-canada-goose_439.html

www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-homme_161.html

www.canadagoosefemmehomme2016.fr/canada-goose-xxs_391.html

www.canadagoosefemmehomme2016.fr/vente-de-canada-goose_361.html

www.canadagoosefemmehomme2016.fr/canada-goose-champs-elysees_360.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-pas-cher_42.html

www.canadagoosefemmehomme2016.fr/canada-goose-quebec_125.html

www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose_366.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-homme_298.html

www.canadagoosefemmehomme2016.fr/canada-goose-a-montreal_306.html

www.canadagoosefemmehomme2016.fr/canada-goose-entrepot_141.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-chilliwack-femme_473.html

www.canadagoosefemmehomme2016.fr/canada-goose-solaris-parka_375.html

www.canadagoosefemmehomme2016.fr/blouson-goose-canada_195.html

www.canadagoosefemmehomme2016.fr/canada-goose-calgary_278.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-trillium_201.html

www.canadagoosefemmehomme2016.fr/canada-goose-paris-magasin_420.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose-paris_39.html

www.canadagoosefemmehomme2016.fr/canada-goose-distributeur_365.html

www.canadagoosefemmehomme2016.fr/chateau-parka-canada-goose_225.html

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/snow-mantra-canada-goose_155.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-violette_121.html

http://www.canadagoosefemmehomme2016.fr/doudoune-goose-canada_292.html

http://www.canadagoosefemmehomme2016.fr/yorkville-canada-goose_463.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau_300.html

http://www.canadagoosefemmehomme2016.fr/magasin-canada-goose-paris_39.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwak_109.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-chateau_427.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-lyon_237.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme_44.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-prix_422.html

http://www.canadagoosefemmehomme2016.fr/acheter-doudoune-canada-goose_258.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-taille-s_327.html

http://www.canadagoosefemmehomme2016.fr/parka-citadel-canada-goose_253.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-solde_198.html

http://www.canadagoosefemmehomme2016.fr/montebello-canada-goose_148.html

http://www.canadagoosefemmehomme2016.fr/gilets-canada-goose_370.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme-noir_114.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canadian-goose_205.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-dawson-parka_374.html

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/pantalon-canada-goose_315.html

http://www.canadagoosefemmehomme2016.fr/doudoune-femme-canada-goose_103.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-homme-prix_329.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-en-france_127.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-borden-bomber_196.html

http://www.canadagoosefemmehomme2016.fr/parka-citadel-canada-goose_253.html

http://www.canadagoosefemmehomme2016.fr/acheter-une-canada-goose_177.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-au-canada-prix_54.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-champs-elysees_360.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-boutique-paris_167.html

http://www.canadagoosefemmehomme2016.fr/femmes-canada-goose_281.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme_328.html

http://www.canadagoosefemmehomme2016.fr/montebello-canada-goose_148.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-vrai_249.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-metz_445.html

http://www.canadagoosefemmehomme2016.fr/citadel-parka-canada-goose_62.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-homme_339.html

http://www.canadagoosefemmehomme2016.fr/vente-canada-goose-montreal_160.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-magasin-paris_280.html

http://www.canadagoosefemmehomme2016.fr/manteau-hiver-canada-goose_480.html

Comment by sguerra376 2 days ago

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-chilliwack-femme_473.html

www.canadagoosefemmehomme2016.fr/acheter-canada-goose-montreal_351.html

www.canadagoosefemmehomme2016.fr/parajumpers-canada-goose_203.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-femme_191.html

www.canadagoosefemmehomme2016.fr/avis-sur-canada-goose_334.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme-noir_114.html

www.canadagoosefemmehomme2016.fr/canada-goose-rabais_88.html

www.canadagoosefemmehomme2016.fr/canada-goose-parka-banff-homme_403.html

www.canadagoosefemmehomme2016.fr/canada-goose-chelsea_326.html

www.canadagoosefemmehomme2016.fr/canada-goose-longue-homme_301.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme-prix_243.html

www.canadagoosefemmehomme2016.fr/canada-goose-bebe_436.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose_120.html

www.canadagoosefemmehomme2016.fr/canada-goose-new-york-price_202.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-pas-cher_310.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-pas-cher_139.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme-pas-cher_199.html

www.canadagoosefemmehomme2016.fr/canada-goose-pbi-chilliwack-bomber_73.html

www.canadagoosefemmehomme2016.fr/canada-goose-ottawa_412.html

www.canadagoosefemmehomme2016.fr/parka-homme-canada-goose_84.html

www.canadagoosefemmehomme2016.fr/rideau-canada-goose_303.html

Comment by sguerra376 1 day ago

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-homme_279.html

www.canadagoosefemmehomme2016.fr/canada-goose-a-montreal_306.html

www.canadagoosefemmehomme2016.fr/gants-canada-goose_312.html

www.canadagoosefemmehomme2016.fr/acheter-canada-goose-pas-cher_124.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-homme_298.html

www.canadagoosefemmehomme2016.fr/canada-goose-montebello-prix_254.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme_68.html

www.canadagoosefemmehomme2016.fr/canada-goose-ottawa_412.html

www.canadagoosefemmehomme2016.fr/canada-goose-bleu-electrique_187.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-pour-femme_475.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose_330.html

www.canadagoosefemmehomme2016.fr/canada-goose-ou-parajumpers_414.html

www.canadagoosefemmehomme2016.fr/expedition-parka-canada-goose_210.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-solde_198.html

www.canadagoosefemmehomme2016.fr/manteau-comme-canada-goose_226.html

www.canadagoosefemmehomme2016.fr/comment-reconnaitre-une-canada-goose_478.html

www.canadagoosefemmehomme2016.fr/vente-canada-goose_194.html

www.canadagoosefemmehomme2016.fr/palliser-canada-goose_261.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose-a-paris_387.html

www.canadagoosefemmehomme2016.fr/prix-canada-goose-canada_416.html

www.canadagoosefemmehomme2016.fr/prix-d-une-canada-goose_130.html

www.canadagoosefemmehomme2016.fr/citadel-parka-canada-goose_62.html

www.canadagoosefemmehomme2016.fr/langford-canada-goose_290.html

www.canadagoosefemmehomme2016.fr/canada-goose-langford_320.html

www.canadagoosefemmehomme2016.fr/canada-goose-occasion-femme_282.html

Comment by sguerra376 1 day ago

www.canadagoosefemmehomme2016.fr/parka-canada-goose-chateau_400.html

www.canadagoosefemmehomme2016.fr/chateau-parka-canada-goose_225.html

www.canadagoosefemmehomme2016.fr/canada-goose-grande-taille_92.html

www.canadagoosefemmehomme2016.fr/adresse-magasin-canada-goose-montreal_297.html

www.canadagoosefemmehomme2016.fr/goose-canada_169.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber_273.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

www.canadagoosefemmehomme2016.fr/parajumpers-ou-canada-goose_87.html

www.canadagoosefemmehomme2016.fr/acheter-canada-goose-pas-cher_124.html

www.canadagoosefemmehomme2016.fr/logo-canada-goose_138.html

www.canadagoosefemmehomme2016.fr/canada-goose-jogging_460.html

www.canadagoosefemmehomme2016.fr/canada-goose-ou-parajumpers_414.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-montebello_90.html

www.canadagoosefemmehomme2016.fr/homme-canada-goose_350.html

www.canadagoosefemmehomme2016.fr/canada-goose-paris_394.html

www.canadagoosefemmehomme2016.fr/kensington-canada-goose_234.html

www.canadagoosefemmehomme2016.fr/canada-goose-noir-femme_346.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-grise_145.html

www.canadagoosefemmehomme2016.fr/canada-goose-parka-langford_176.html

www.canadagoosefemmehomme2016.fr/canada-goose-new-york-prix_159.html

www.canadagoosefemmehomme2016.fr/canada-goose-grenoble_340.html

www.canadagoosefemmehomme2016.fr/canada-goose-prix_56.html

Comment by sguerra376 1 day ago

Your point of view

You must be signed in to comment.