LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old
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...
Member
Posted in Uncategorized
Views 252 Comments 2 rocket357 is offline
Old

Member Response

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

Hi,

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...
Moderator
Posted in Uncategorized
Views 253 Comments 0 onebuck is offline
Old

[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.

Quote:
#!/bin/bash
#input="$@"
# this program is stupid. It's declared to be in public domain by its author, who whishes to remain anonymous
...
Member
Posted in Uncategorized
Views 268 Comments 3 the dsc is offline
Old

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...
Member
Posted in Uncategorized
Views 226 Comments 0 rocket357 is offline
Old

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....
Member
Posted in Uncategorized
Views 303 Comments 0 sridhar11 is offline

  



All times are GMT -5. The time now is 09:13 AM.

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