Re: awk scripts problem after upgrade from RHEL-2.1 to RHEL-4



Jack Challen wrote:
Ben Russo wrote:
<snip>
and it would give you a list of files in the directories that are listed in /u/apps/utilities/idxpath that contain the date string in the range given.

any ideas?

ls /u/apps/utilities/idxpath | grep -e $(seq -s ' -e ' 060501 060510)


where the final two numbers represent the start and end dates respectively. It wouldn't be too hard to script with "expr" so that it evaluated your relative dates...

jack

True, there are a thousand easy ways to skin that cat.
The real reason I am asking is that it seems wierd that a simple shell script that calls an AWK script would break after upgrading from RHEL-2.1 to RHEL-4.
I thought maybe people knew what the problem might be.
And I wasn't so concerned about this simple AWK script as I was
that maybe the *cause* of this problem could break other things on the
server that I am not yet aware of.

-Ben.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Dialog editor for 2 languages?
    ... Frankly, your time would be well-spent if all you did was write a PERL or PYTHON or AWK script that read in a .rc file in language A and wrote it out in language B. All layout is managed in only one dialog, and all the script does is when it finds string A it writes it out as string B, then gives a summary of all strings it couldn't identify. ... A table has several rows and several columns, the top row contains labels, and the leftmost column except for the top row contains integers starting from 1 and counting up. ... Having some vague awareness of languages other than Japanese and the way that translations are often conducted, it suddenly struck me that the header wasn't intended to be garbage, the header was a mistranslation of something that means "number". ...
    (microsoft.public.vc.mfc)
  • jawk long string arguments
    ... I use in ma app jawk class and I need to ... pass to my awk script few string from my java application. ... i recieve "line -1" in my output file ...
    (comp.lang.java.help)
  • Re: [Full-disclosure] SSH brute force blocking tool
    ... Note that the 13th field both contains a dot and is entirely controlled ... The $1 in the awk script below is the entire string, ...
    (Full-Disclosure)
  • Re: Read strings from one file and search for them in a directory containing htm files
    ... > line that contains that ONE STRING, I need to write that ONE STRING ... > strings are used in any of the 100 .htm files that exist in another ... > I am looking for an awk script for this. ... if ONE.STRING contains just search strings that might exist in a ...
    (comp.lang.awk)
  • Re: Print last 5 lines
    ... Here an awk script which makes a single pass through the file by using ... Steffen "goedel" Schuler ...
    (comp.lang.awk)