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 gkittelson 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: scriptfinder
  • Order by date
  1. scriptfinder

    Keep latest 5 files and delete the rest..

    Sorry about that...I should have searched the existing answers... anyway thanks everyone..
  2. scriptfinder

    Keep latest 5 files and delete the rest..

    Hi! Please help me find a command or a script to keep, for ex., 5 latest files and delete the rest in the directory. The order should be file creation date. Your help is greatly appreciated. Thank you.
  3. scriptfinder

    Password characters

    I just now did what you mentioned and no issues now. You guys are too good!
  4. scriptfinder

    Password characters

    You guys are great! it works fine except that backspaces appear as chars and the spacebar acts as backspace. Shouldn't it be the other way? Any ideas? Also, I just made one minor correction - a closing double quote after "$mychar" = " ". Am I right?
  5. scriptfinder

    Password characters

    Sorry for getting back to you late and thanks for the response. The OS is SunOs and the shell is ksh. BTW, read -n1 came out as a bad option error. In a nutshell, the user should be able to see some characters while entering the password. The user is going to run a very long script in which...
  6. scriptfinder

    Password characters

    Please someone help me find a way to solve password character issue. I have 2 input statements for the user, one of which is a password to be entered. When the user inputs the password on the screen, I would like the characters to appear as asterisks or stars. I can use stty to make the...
  7. scriptfinder

    close all open files

    Thanks!!
  8. scriptfinder

    close all open files

    Hi! Can someone help me find a way to close all open files, there could be some exceptions though, by a shell script, before I start a certain process? Thanks in advance...
  9. scriptfinder

    grep

    Works great! Thank you so much!
  10. scriptfinder

    grep

    Hi! May be a dumb question but I could not find a right option. I have a file with the following 2 lines. abc|123|456 abcdef|235|567| If I do a "grep" on the file for "abc", I am getting both "abc" and "abcdef", so is there a way I can get the line that contains "abc" only? Please someone...
  11. scriptfinder

    Processing indicator

    It seems too slow.. but if there is no way I can break it into fractions of a second, I am okay with one. thanks again...
  12. scriptfinder

    Processing indicator

    Hi! TonyGroves! I got the following error. sleep: bad character in argument I have SunOs. Any ideas? Thanks.
  13. scriptfinder

    Processing indicator

    Hi! Folks! Can someone help me with a code snippet to indicate processing, while my shell script is doing some work in the background?. The indicator's like continuous printing of forward slash, pipe, and backward slash or any thing else in the same character position. Thank you very much in...
  14. scriptfinder

    Find a digit

    Thanks a lot!!!
  15. scriptfinder

    Find a digit

    Hi! I am looking to find a digit in a word. For ex: TEXT="Number3" I need to find digit 3 (can be any digit 'n') in the variable $TEXT. Can anyone please help? Thanks.
  16. scriptfinder

    How to exit from running mode...

    Hi! I want to automate a task that starts a server and exits once the server goes to running mode. The challenge is how to exit from the running mode. If you start the server interactively, through the command prompt, you can ^c from the process, but how do you achieve this by using a script...
  17. scriptfinder

    Find what variables have been declared?

    Thanks a lot!!!
  18. scriptfinder

    Find what variables have been declared?

    I have a unix script that uses a lot of variables. I would like to search for all the variables(I can manually find for all the variables I used but it is time consuming) and unset them at the end of the script. Help me if you know any shortcut to search and print all variables that are declared...

Part and Inventory Search

Back
Top