Register a domain and help support LQ
Go Back > Blogs
User Name


Rating: 3 votes, 5.00 average.

Windows PowerSh**

Posted 08-12-2014 at 10:40 AM by rocket357 (Musings on technology, philosophy, and life in the corporate world)
Updated 08-12-2014 at 11:15 AM by rocket357

grep is such a simple concept. You have a stream of text lines, and you look for lines in the output that match a pattern. Really, really simple.

Take the following, for example:

some-command | grep 'pattern'

I know this is difficult to understand because it's overly complex, but that's how things work on *nix.

Try doing that on PowerShell. You end up with something like:

(some-command|out-strings -stream) | select-strings...
Posted in Uncategorized
Views 292 Comments 2 rocket357 is offline

Member Response

Posted 08-11-2014 at 06:23 PM by onebuck


Been a while since I made a blog entry. Lot has happened since the initial entry. I am now a LQ moderator that takes up time for my duties. I do enjoy helping other LQ members whenever possible. I have sold the farm therefore the horses had to find a new home and I moved to town to live in a historical home we had to purchase.

Love the convenience of living in town but miss the solitude of the country. I lost all my storage (barn) & workshop. I am in the process...
Posted in Uncategorized
Views 284 Comments 0 onebuck is offline

[bash] "keep trying" command, even if exits with error, for at least 10 times

Posted 08-08-2014 at 10:40 PM by the dsc (linux-related notes)
Updated 08-08-2014 at 10:42 PM by the dsc
Tags bash

A script that tries to run a given arbitrary command N times, or until it exits with success. The commented parts are aborted attempts to make it figure whether the first parameter is a number instead of a command, and that would be used as the maximum number of attempts. Something went wrong, sometime I'll try to figure it out.

# this program is stupid. It's declared to be in public domain by its author, who whishes to remain anonymous
Posted in Uncategorized
Views 311 Comments 3 the dsc is offline

The Squareroot of Negative Fun

Posted 08-08-2014 at 08:48 PM by rocket357 (Musings on technology, philosophy, and life in the corporate world)
Updated 08-08-2014 at 08:56 PM by rocket357

Every now and then, you have one of those days. One of those days where a customer reports that something weird is happening...their database contains *negative* client ids...even though you know for a fact that the client id is an identity column that begins at 1 and counts *up* to MAX_INT (or whatever SQL Server's max integer is). One of those days where you dig through thousands of lines of PHP code to discover that another intern decided to check in a revision where two numeric variables were...
Posted in Uncategorized
Views 260 Comments 0 rocket357 is offline

Configure NFS Server and Client Configuration on Ubuntu 14.04

Posted 08-08-2014 at 03:13 AM by sridhar11

NFS was developed at a time when we weren't able to share our drives like we are able to today -- in the Windows environment. It offers the ability to share the hard disk space of a big server with many smaller clients. Again, this is a client/server environment. While this seems like a standard service to offer, it was not always like this. In the past, clients and servers were unable to share their disk space.
Thin clients have no hard drives and thus need a "virtual" hard-disk....
Posted in Uncategorized
Views 328 Comments 0 sridhar11 is offline


All times are GMT -5. The time now is 07:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration