Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kornShellScripter

    How to stop MS Word 2003 auto-changing hyperlink on save

    In MS Word 2003, I'm writing a document that involves linking to two Excel spreadsheets. \\bp1ldcvi012\darren$\WORK\Migration\Apps.xls \\bp1ldcvi012\MISC2\Apps Support Team\Middle Office\_General\Supported Apps.xls These links work as I create them (I can ctrl-click them and the spreadsheets...
  2. kornShellScripter

    How2 find files, in current dir, beginning with letters c or f

    I am writing a script that: - does an rsh to various unix boxes, and on each one... - list the files in a given directory that begin with certain letters I currently do it the following way, which seems like a cludge and I was hoping if any of you had a better suggestion? I use "find * -prune...
  3. kornShellScripter

    removing leading/trailing white space

    Hi, I'm using ksh and am analysing reports which have fixed column widths (candidate for the cut command). The values in that particular column might not be as wide as the column, so VALUE=$(cut -c10-25 file) might set VALUE="GB 123 ABC G " and what I want is VALUE="GB 123 ABC G" (so I want...
  4. kornShellScripter

    korn shell's [[/]] and wildcard expansion

    I'm testing for the existence of files that begin with, say, "gene" and have 8 characters in the filename. So gene???? This will not work: if [[ -f gene???? ]] because [[/]] does not allow wildcard expansion. So I'm currently using if [ -f gene???? ] But it would be nice to keep this test...
  5. kornShellScripter

    passing changing strings into nawk? (quoting issue)

    In line with Ferherke's tip to try to get nawk to do as much work as possible, I replaced: OUT_TEXT_DATE=$(grep 'AP BALANCES AS AT' $FILE_NAME | nawk '{print $6} | head -1' with OUT_TEXT_DATE=$(nawk '/AP BALANCES AS AT/{print $6}' $FILE_NAME | head -1) (I'm not a nawk person so I'm learning...
  6. kornShellScripter

    nawk - how to remove comma from "26 Apr, 2007"?

    Hi, I have the following input: * Report Title ******** Thu 26 Apr, 2007 6:00 AM * <rest of report snipped> I need to extract the date from this line I'm using: OUT_TEXT_DATE=$(head -1 $FILE_NAME| nawk '{print $6, $7, $8}') Which produces: "26 Apr, 2007" I'm looking for an elegant(1)...
  7. kornShellScripter

    search for text over multiple lines?

    Hi! I have the following ASCII file, which is a report output from another system, in a spool directory in Unix: <lines above snipped> Amount One Amount Two Amount Three ---------- ---------- ------------ 1000.00 2000.00 3000.00 <lines below snipped> What I need my korn...

Part and Inventory Search

Back
Top