First  |  Prev |  Next  |  Last
Pages: 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
Change Case of Word Using VI
Using the tilde key in VI allows me to change the case of a letter. Using the period key allows me to repeat the change for subsequent letters of a word. Is there a (more elegant) way to uppercase one word? ... 9 Apr 2010 04:32
very strange ksh behavior
This is a very strange problem. $ while read line do rc=$(echo $line | awk '{ print $4 }') echo BEFORE rc is $rc if [ "$rc" -ne 0 ]; then echo " ERROR rc nonzero rc is $rc"; fi echo AFTER rc is $rc done extract4 status: file=file1.txt rc=0 realcount=488 BEFORE rc is rc=0 AFTER rc... 8 Apr 2010 09:28
What's the equivalent of the RE: \d+[+-]?
Hi, I want to match a string of numbers followed optionally by either a + or a -. The corner cases are: the number cannot begin with a 0 unless it's a solitary 0. So expressing this in terms of regular expressions I can write: [0][+-]? | [1-9][0-9]*[+-]? So far so good, but how would I write the equi... 4 Apr 2010 12:37
bash: how to transfer some non-ascii code
under vim, these non-ascii characters are displayed as <97>, <92> etc. and on command line with 'cat -A filename' shows: 'M-BM-^W' , 'M-BM- ^R' respectively... I know <97> is some long dash '--' and <92> is a single quotation mark. under bash, How can I transfer these characters into proper ASCII, i.e.: under vi... 3 Apr 2010 23:37
Possible read/write conflict within awk.
Hi all, I use the following code to obtain the lines existing file2 but not in file1, and then store the results into file2 as follows: awk 'NR==FNR{a[$0]++} NR>FNR&&!a[$0]' file1 file2 > file2 I've a question about the above operation: does the file2 will be exposed to read/write conflict issue in this case... 6 Apr 2010 16:27
AWK - Stop processing
Is there anyway to quit awk script after acting on just first line? ... 2 Apr 2010 01:44
Trying to get condition right.
HI Im trying to get this condition to work. If snmpwalk command works correctly (i.e. returns status code of 0 - community string ok etc) and does not return a string (i.e. matching alarm I want from grep) then return either success code or a certain string I can use in my condition/action. I have tried te... 1 Apr 2010 13:30
[announcement] runawk-0.21.0 -- yet another power tool to program in shell
A few day ago I released runawk-0.21.0. As it can be efficiently used for writing oneliners (look for (***) marker in this text for the sample) and so called 10-liners I hope this announce will not treated as spam here. ------------------------------------------------------------ WHAT IS RunAWK: RunAWK is ... 31 Mar 2010 16:35
ls -d does not do what I want/expect
Is there some way to use the ls command that is equivalent to "find . -type d" ? If not, what is the -d option good for? ... 6 Apr 2010 17:34
commenting all lines with a particular substring
hi, I want to comment all lines in a C progamming project with a particular string in it. Which command to do it? Thanks, ... 30 Mar 2010 22:57
First  |  Prev |  Next  |  Last
Pages: 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40