Search Results

Search: Posts Made By: Michael Stora
2,367
Posted By Michael Stora
I just want to follow up that I was changing jobs...
I just want to follow up that I was changing jobs in the department so I just solved a couple of these and got my mini Cygwin down to 6MB in 20 files in 3 folders--works well. profile is the only...
1,100
Posted By Michael Stora
I'm not currently doing any iteration, only one...
I'm not currently doing any iteration, only one find command. I don't particularly want iteration because that might cause duplicate entries. The multiline syntax \) ... )\ is just for human...
1,100
Posted By Michael Stora
No, it can be an arbitrary list of filters for...
No, it can be an arbitrary list of filters for find (not necessarily 4 and not necessarily -iname).

Mike
1,100
Posted By Michael Stora
Load find pattern from a file?
Right now I have a bunch case statement wrapped around multiple groups of patterns. I want to make each pattern end-user definable in files instead. Can the bold parts be imported from a file...
2,367
Posted By Michael Stora
Because I would have to learn it first :) Hadoop...
Because I would have to learn it first :) Hadoop has been next on my list for a while and my organization seems to be moving toward Python for scripting (previously an in-house extended version of...
2,367
Posted By Michael Stora
Builtin alternatives for several commands?
I'm adapting a BASH script to run with an absolute minimal amounts of Cygwin64 files so colleagues using Windows can use it without installing Cygwin.
I am down to the following in /bin only...
6,246
Posted By Michael Stora
I got around using an intermediate character (in...
I got around using an intermediate character (in the past I have used some of the old ASCII punch card/paper tape control characters 28-32) by brute forcing first and last quote removal. There...
3,688
Posted By Michael Stora
BINMODE=1 Thanks a lot! I doubt I would...
BINMODE=1

Thanks a lot! I doubt I would have ever figured that out! Did some more research and foundthat BINMOD=1 is the same as BINMODE=r (2: =w, 3: =rw). Letters seem more clear to me.
...
3,688
Posted By Michael Stora
\r getting lost in awk
I have a DOS .csv file (EOL=\r\n) that also contains some \n characters representing a new line within in some multi-line fields. I want to change the \r\n sequences to \n (like dos2unix does) but...
6,246
Posted By Michael Stora
I think I understand the code but what does the...
I think I understand the code but what does the 1do? Also why is the or in quotes?

Unfortunately I often have single quotes at the end of a line, so this often fails. The following example is...
6,246
Posted By Michael Stora
Replacing all but the first and last double quote in a line with a single quote with awk
From:

1,2,3,4,5,This is a test
6,7,8,9,0,"This, is a test"
1,9,2,8,3,"This is a ""test"""
4,7,3,1,8,""""

To:

1,2,3,4,5,This is a test
6,7,8,9,0,"This; is a test"
1,9,2,8,3,"This is a...
1,985
Posted By Michael Stora
I found something interesting. *.aps folders are...
I found something interesting. *.aps folders are rarely inside other *.aps folders (although *.aps files are . . . just not folders).
folderList=$( find "$dataDir" -type d -name '*.aps' -printf...
1,985
Posted By Michael Stora
The script runs side by side with an extremely...
The script runs side by side with an extremely un-user-friendly (and expensive) data aquisition software allowing the techs to edit comments after the fact and renename runs (requires editing an xml...
1,985
Posted By Michael Stora
I know the remote share is responsible for a good...
I know the remote share is responsible for a good part of the overhead, but I am accostomed to finding 3-4x differences in speed trying the same thing in sed, awk, perl, etc. When searching for a...
1,985
Posted By Michael Stora
Finiding Files with Perl or awk?
I posted last week about how the find command (known to be slow to begin with), is slowing down by 75x on a windows remote share...
9,545
Posted By Michael Stora
Thanks but does not work in mintty. ...
Thanks but does not work in mintty.

---------- Post updated at 02:42 PM ---------- Previous update was at 02:41 PM ----------

[QUOTE=wisecracker;302944157]This worth a try if it is rows and...
2,405
Posted By Michael Stora
I'm working under Cygwin64 in a all-Windows...
I'm working under Cygwin64 in a all-Windows corporate environment. (This utility runs side by side with the data aquisition software allowing users to edit run names, comments,...
9,545
Posted By Michael Stora
Can a script resize it's own mintty console?
I'm looking for finer granularity than the 20 ANSI escape sequence screen modes. What I'd like to do is have the terminal increase it's own height when I have to show the user a long menu.
...
2,405
Posted By Michael Stora
Recursive folder search faster than find?
I'm trying to find folders created by a propritary data aquisition software with the .aps ending--yes, I have never encountered folder with a suffix before (some files also end in .aps) and sort them...
4,224
Posted By Michael Stora
Post 2, I recognised that it worked (the reason I...
Post 2, I recognised that it worked (the reason I thanked the post).
Post 3, the second example you reposted is applicable to my script but I failed to understand it.

It appears that I did not...
4,827
Posted By Michael Stora
Trying to be more rigorous with attempts to...
Trying to be more rigorous with attempts to demonstrate the question in simple code examples results in me being unable to duplicate the problem . . .

Now I am left to ponder if the problem I...
4,827
Posted By Michael Stora
My attempts to demonstrate what I thought was...
My attempts to demonstrate what I thought was happening with simpler examples on the command line were flawed and introduced additional erros (although I did duplicte the issues using Awk -F, I did...
4,224
Posted By Michael Stora
That is because these are but three lines of a 70...
That is because these are but three lines of a 70 line AWK script. Isn't it enough to say code is AWK code or BASH code or Korn code? indeed there is. I am passing filenames from the Bash wrapper...
4,224
Posted By Michael Stora
I thought the meaning of $1 was pretty...
I thought the meaning of $1 was pretty unambiguous in AWK.

Here is a little more context:

while (getline < "'"$failListFile"'") { split( $0, a, ","); failMessage[a[1]a[2]a[3]a[4]a[5]]=a[8]...
4,827
Posted By Michael Stora
I meant false positive in the sense of what I am...
I meant false positive in the sense of what I am trying to do, not in the sense of "hey, I found a bug in AWK!". I was just showing trying all possible combinations with and without quoting. I...
Showing results 1 to 25 of 170

 
All times are GMT -4. The time now is 07:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy