Showing posts with label command-line. Show all posts
Showing posts with label command-line. Show all posts

Wednesday, January 14, 2015

Dell PERC command-line utility program perccli

This tool apparently works for all PERC9 controllers and the following operating systems are supported:
Novell SuSE Linux ES 11 
MS Windows Server 2012 
Red Hat Ent Linux 6 
Red Hat Ent Linux 7 
SUSE Linux ES 12 
MS Windows Server 2012 R2/SP 
MS Windows 2008 R2

Binaries are at: http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=3XDPP

HTML version of manual: http://www.dell.com/support/Manuals/us/en/19/Topic/poweredge-rc-h730/PERC_CLI_RG_Pub-v1/en-us

PDF of manual: http://topics-cdn.dell.com/pdf/poweredge-rc-h730_Reference%20Guide_en-us.pdf

Wednesday, March 3, 2010

UNIX sort by multiple columns

Sometimes the "obvious" stuff isn't so obvious (at least to me...)

I had a text file with multiple columns of numbers. I wanted to sort it by the first column, then the second, then the third. It wasn't immediately obvious to me how to do it. The man page for 'sort' of course does not mention that you can specify the '-k' option multiple times, and I didn't have the GNU 'info' utility installed:
sort -k1n -k2n -k3n file

Friday, July 31, 2009

command-line edit foswiki topics

We use foswiki at SDO for our "Local Operating Procedures" (LOPs). These many consist of numbered steps, with some metadata attached.

I recently was tasked to add a document number to the metadata. Easy, except with hundreds of documents, I didn't want to do this manually.

Each Wiki topic is a text document. The text document also stores the metadata (like the document number). Of course, since it's text it is easy to edit and script the edit with perl.

However, each topic text file also has an associated RCS file for versioning information. If you just edit the text file, the web page itself looks fine, but you can't see the change you made in the page's history (unless you make another change using the web interface).

But it turns out to be very easy to record your direct text file edits in RCS. Simply do
rcs -l TextFileName.txt
## now make your changes using whatever method (manual, scripted, etc.), then:
ci -mnone -t-none -wusername -u TextFileName.txt

That's it! Now the edits you made from your terminal are visible in the topic's history.