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 IamaSherpa 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. brainchild1977

    Getting java.lang.NullPointerException on File I/O

    Hello, Am gettting this error on my email java application. The app utilizes some properties files to get certain parameters. I have checked all paths to make sure they are correct. I wonder if it has to do with incompatible jars such as xerces or xalan. The application was pre-compiled using...
  2. brainchild1977

    Am getting log4j:ERROR No appenders could be found for category

    Hello, Am using log4j to log errors for my Java application. When i run the unix script I get the following error message: log4j:ERROR No appenders could be found for category (classname). log4j:ERROR Please initialize the log4j system properly. I do have the log4j.jar included in my...
  3. brainchild1977

    Getting log4j:ERROR No appenders could be found for category

    Hello, Am using log4j to log errors for my Java application. When i run the unix script I can the following error message: log4j:ERROR No appenders could be found for category (classname). log4j:ERROR Please initialize the log4j system properly. I do have the log4j.jar included in my...
  4. brainchild1977

    Unix Newbie- How do I loop thru files, rename and move?

    Thanks for all your help. That worked!!
  5. brainchild1977

    Unix Newbie- How do I loop thru files, rename and move?

    I added a "cd" command before the for loop. But am still encountering the same problem. aby ideas?
  6. brainchild1977

    Unix Newbie- How do I loop thru files, rename and move?

    Thanks for your quick reply. when i ran your revised script, i get an error that says "can't access *.ems" I do have some ems files in the same directory that the script is running in. any ideas?
  7. brainchild1977

    Help with renaming/moving files

    I need to rename files by changing only the file extension (retain the filename) using a for loop. i found this piece of code online OLDPREFIX=aaa NEWPREFIX=bbb for FILE in "$OLDPREFIX"* do NEWNAME=´echo "$FILE" | sed -e "s/^${OLDPREFIX}/$NEWPREFIX/"´ mv "$FILE" "$NEWNAME" done But when i...
  8. brainchild1977

    Unix Newbie- How do I loop thru files, rename and move?

    I found this line of code online which seems to do what i want what am getting errors #!/bin/sh OLDSUFFIX=ems NEWSUFFIX=failed for FILE in *."$OLDSUFFIX" do NEWNAME=´echo "$FILE" | sed -e "s/${OLDSUFFIX}\$/NEWSUFFIX/"´ mv "$FILE" "$NEWNAME" done any ideas on a simpler way?
  9. brainchild1977

    Unix Newbie- How do I loop thru files, rename and move?

    Hello, I need to be able to loop through all the files in a certain directory (e.g directory A). The files am looking for would have an EMS extension (i.e *.ems). Once it locates these files, my script should rename the files i.e from testfile.ems to testfile.txt. It should keep the orginal...

Part and Inventory Search

Back
Top