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 Chriss Miller 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: *

  • Users: dkeim
  • Order by date
  1. dkeim

    Substitution Operator Problems

    chgit is just a one line script that runs your perl command except with input variables. Thanks for your help, everything seems to be working.
  2. dkeim

    Substitution Operator Problems

    Actually, my command did work after all. I was testing in one of my test directories and forgot that UNIX/Linux is case sensitive. The command '$ chgit leia anakin' could not work because the word was LEIA (uppercase). So everything appears to be just fine. Thanks again
  3. dkeim

    Substitution Operator Problems

    The script that I created, 'chgit' would be used on the command line like this. $ chgit leia anakin leia is an example of the old phrase to be replaced. anakin is an example of the new phrase to be used.
  4. dkeim

    Substitution Operator Problems

    I am devising a method to send two values to a script that will does your command. script name: cngit perl -p -i -e 'BEGIN{@ARGV = grep -T, @ARGV} s|$1|$2|g' * But it doesn't seem to be working. Any ideas
  5. dkeim

    Substitution Operator Problems

    Super - it worked like a champ!!!!!!!! [bigsmile]
  6. dkeim

    Substitution Operator Problems

    I am trying to do a global replacement of a value in a directory. The command I am using is "perl -p -i -e 's|<old text>|<new text>|g' *" This of course touches all files in the directory and I am getting errors on executable programs that it pass through. Is there a way to select just the...

Part and Inventory Search

Back
Top