Search Results

Search: Posts Made By: vgersh99
89
Posted By vgersh99
echo 'HiringManager_RHMC, DirectSupervisor_RHMC,...
echo 'HiringManager_RHMC, DirectSupervisor_RHMC, ProcessServerReadAccess_ST' | awk -F, '$1=$1' OFS='\n'
129
Posted By vgersh99
how about for starters: echo...
how about for starters:
echo 'https://example.com/live-hls/bla:bob-sd-blabla/playlist.m3u8' | sed 's#.*:\([^-][^-]*\)-.*#\1#'
160
Posted By vgersh99
so you're good to go?
so you're good to go?
160
Posted By vgersh99
what is this supposed to do? elif [ !...
what is this supposed to do? elif [ ! -"${arg_file+X}" ]; then
also don't forget the comment about #!/bin/bash - otherwise it's not a bash script
160
Posted By vgersh99
I'd start by removing the leading space from the...
I'd start by removing the leading space from the first line: #!/bin/bash - there should be no leading space before the #
Also there're 94 lines in the code sample you gave and the complain is for...
391
Posted By vgersh99
sorry, I don't think I can help - not sure of the...
sorry, I don't think I can help - not sure of the algorithm and you're not providing any hints.
Maybe other did better in their trigonometry in school.
Would be interesting to see the...
391
Posted By vgersh99
interesting puzzle! Are you saying one has to...
interesting puzzle!
Are you saying one has to "draw" an imaginary rectangle frame given the input coordinates?
I'm saying "imaginary", because the desired output coordinates are not in your input...
359
Posted By vgersh99
RudiC/rdrtx1, the binning, the percentage and...
RudiC/rdrtx1,
the binning, the percentage and the totals are somewhat different from the OP's desired output in post #1.
Hence post #2 with the ask to elaborate.
359
Posted By vgersh99
how's the percentage supposed to be calculated? ...
how's the percentage supposed to be calculated?
percentage of the bin out of the total sum?
then 8-10 5 8.2 is supposed to be 8-10 5 3.5 for your example...
Please elaborate.
291
Posted By vgersh99
it could helpful if you provided a sample...
it could helpful if you provided a sample (simple) file and the description what column(s) need to be extracted.
Also having a sample input AND a desired output would be helpful as well.

Please...
488
Posted By vgersh99
The error msgs usually get redirected to steer....
The error msgs usually get redirected to steer. By mapping stderr (2) to stdout (1), you get to do whatever you want...
find -name "rog*.*" 2>&1 | grep -v denied
406
Posted By vgersh99
gawk -v IGNORECASE=1 '....'
gawk -v IGNORECASE=1 '....'
Forum: Shell Programming and Scripting 2 Weeks Ago
443
Posted By vgersh99
for one I can see different number of blank...
for one I can see different number of blank spaces in look_for=" PARAMETER \(SIZEXX = " and in the inline version: else if($0 ~ / PARAMETER \(SIZEXX = /)...
Forum: Shell Programming and Scripting 2 Weeks Ago
443
Posted By vgersh99
I see a couple of potential issues with this...
I see a couple of potential issues with this approach.
I still don't understand why you can't use the usual paradigm of passing vars with -v to awk and have to use this somewhat convoluted approach....
511
Posted By vgersh99
Any luck with the alternate suggested solutions...
Any luck with the alternate suggested solutions to try?
I see you're on SunOS and trying to use awk. Any better luck with nawk or /usr/xpg4/bin/awk?
507
Posted By vgersh99
Any ideas/hints you can think of? How about...
Any ideas/hints you can think of?
How about looking into FNR % 3 for starters?
Forum: Shell Programming and Scripting 2 Weeks Ago
606
Posted By vgersh99
... or anything BUT commaS
... or anything BUT commaS
511
Posted By vgersh99
Looks like your fields are space separated... ...
Looks like your fields are space separated...
sed 's/^[^ ][^ ]*//' myFile
Forum: Shell Programming and Scripting 4 Weeks Ago
812
Posted By vgersh99
Sorry, my bad: awk -F';' ' FNR==NR { if...
Sorry, my bad:

awk -F';' '
FNR==NR { if (/This is the last line of the page/) total++;next}
/This is the last line of the page/{printf("%s\nPage No:%d of %d\n", $0, ++page, total);next}1'...
Forum: Shell Programming and Scripting 4 Weeks Ago
812
Posted By vgersh99
textfile1 textfile1 > textfile12 we're parsing...
textfile1 textfile1 > textfile12
we're parsing input file testfile1 TWICE: one for calculating the total number of pages AND second for inserting the No:N of M
For teh missing numberings for the...
Forum: Shell Programming and Scripting 4 Weeks Ago
812
Posted By vgersh99
Ah, ok. How 'bout: FNR== NR && /This is...
Ah, ok.
How 'bout:

FNR== NR && /This is the last line of the page/{ total++;next}
/This is the last line of the page/{printf("%s\nPage No:%d of %d\n", $0, ++page, total);next}1' textfile1 ...
Forum: Shell Programming and Scripting 4 Weeks Ago
812
Posted By vgersh99
# when a string "This is last..." is found, print...
# when a string "This is last..." is found, print the CURRENT page count (page) incremented by 1 (++) and the total # of pages (total)
/This is the last line of the page/{printf("Page No:%d of...
Forum: Shell Programming and Scripting 4 Weeks Ago
812
Posted By vgersh99
Hmmm... I don't quite understand the code and...
Hmmm... I don't quite understand the code and this is NOT what I meant...


awk -F';' '

FNR== NR && /This is the last line of the page/{ total++;next}
/This is the last line of the...
Forum: Shell Programming and Scripting 4 Weeks Ago
812
Posted By vgersh99
process the file twice: first for calculating the...
process the file twice: first for calculating the total, and the second to print your summary.
936
Posted By vgersh99
Welcome to the forums! A number of things is...
Welcome to the forums!
A number of things is wrong (to start with):
1. a logical construct [ logical ] should have trailing/leading spaces, e.g.: if [ "$DAYOFWEEK" == 1 ]
2. numerical comparison...
Showing results 1 to 25 of 500

 

Featured Tech Videos

All times are GMT -4. The time now is 04:57 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy