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 TouchToneTommy 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. hmehta

    find out the delta between two files

    See teh following two files fIle1 and File2. They have some common city/state names as well File has additional items. I ned to identify common items as well as teh additional ones in File1 example : File1: abbeville,SC aberdeen,ID...
  2. hmehta

    find out the delta between two files

    I have two files file1 and file2. File 1 has 2000 entries and file 2 has 5000 odd entried. I want to find out what are the common things between two files and also find what are the extra items in file2. How could i Do this in awk. Simple diff does not work as the line to l;ine comparsioon is...
  3. hmehta

    How can I do this

    I have text of this format throughout the file <audio src=&quot;../prompts/say_name_you_want_to.wav&quot;>Please say the skill code </audio> What I need to do is create a file with mapping between .wav file and the text above so the mapping in this case would be : say_name_you_want_to.wav...
  4. hmehta

    How to use su, telnet or rlogin without being prompted for password

    Then how do I write a script whihc does telnet and is intercative and doesn't ask me for a passwd. Or if it aske me for a passwd how do I make it go back to teh script..
  5. hmehta

    How to use su, telnet or rlogin without being prompted for password

    How can I eb=nter password with su, rlogin or telnet coomand. I want to do something like su -u user -password user1 However I don't any such option for entering password.
  6. hmehta

    What's wrong with this awk sytntax

    It still gives me : awk: syntax error near line 1 awk: bailing out near line 1
  7. hmehta

    What's wrong with this awk sytntax

    Whats wrong with this synta, it always gives error at line 1 awk -v fn=web.xml.sv BEGIN'{ while ((getline arr[a++] < fn) > 0) { m++ } print m, &quot;records read from&quot;, fn for (x in arr) { if (arr[x] !~ /!!.*!!/) { delete arr[x] } } } {...
  8. hmehta

    Take variable from file 1 and put at certain positions in file2

    This doesn't work I chaged it to: awk -v fn=web.xml.sv BEGIN'{ while ((getline arr[a++] < fn) > 0) { m++ } print m, &quot;records read from&quot;, fn for (x in arr) { if (arr[x] !~ /!!.*!!/) { delete arr[x] } } } { for (all in arr) {...
  9. hmehta

    Take variable from file 1 and put at certain positions in file2

    I need to do the following. I have two files file1 and file2. File1 has some variables with !! characters at the begining and the end of the variables like the following !!EXTERNAL_WEB_ADDRESS!! File2 has variables with same name but without !! charcaters like EXTERNAL_WEB_ADDRESS Now I need...
  10. hmehta

    Whats wrong with this script, someh

    Cool, lordblood it worked. Thanks for ur help...
  11. hmehta

    Whats wrong with this script, someh

    I am soory but it still doesn't work it somehow prints only The VERSION no you confirmed is $VERSION even if you say n. if [ &quot;$CHOICE&quot;=&quot;y&quot; ]; then echo &quot;The VERSION no you confirmed is $VERSION\n&quot; else echo &quot;Enter the version no for the VZevpsrc release...
  12. hmehta

    Whats wrong with this script, someh

    I did that lordblood, It seemd to work when i enter y but when I put n or anythig else it prints the same thingas it would for y. if [ &quot;$CHOICE&quot; -eq &quot;y&quot; ]; then echo &quot;The VERSION no you confirmed is $VERSION\n&quot; else echo &quot;Enter the version no for the VZevpsrc...
  13. hmehta

    Whats wrong with this script, someh

    Hello vegersh99, Even that gave error ./run.ftp[26]: test: argument expected
  14. hmehta

    Whats wrong with this script, someh

    when I run the first script as suggested by Mike i get the following error on ksh ./run.ftp[26]: y: bad number
  15. hmehta

    Whats wrong with this script, someh

    This didn't work... I tried the last solution and it didn;t work when I entered. I think there is an error in if [ &quot;$CHOICE -eq &quot;y&quot; ]; then So I chnaged to if [ $CHOICE -eq &quot;y&quot; ]; then but then it didn't work when i entered y.
  16. hmehta

    Whats wrong with this script, someh

    Whats wrong with this script, somehow it is not picking up the correct values for choice... It gives me the message ./run.ftp[26]: [y==y]: not found echo &quot;Enter the version no for the VZevpsrc release \n&quot; read VERSION echo &quot;The VERSION no you entered is $VERSION\n&quot; echo...
  17. hmehta

    Need to generate the following file

    The file has teh folloowing contents. PKG=VZevpsrc NAME=Evoice Portal Application Software VERSION=2.8 ARCH=SPARC_Sol_2.8 CATEGORY=application CLASSES=none replacessi BASEDIR=/tt DESC=Update to approot.xml (05/24/2002) I needto write a awk script which would intercatively ask the user for a...
  18. hmehta

    running a script on ncftp

    I dowanloadthe ncftp software . Now I want to run a script on the ncftp prompt. It doesn't seem to run like it would on normal unix shell. A sample script is cd /home/hmehta pwd ls -al Can anyone advise?
  19. hmehta

    Can one write script to automate ftp procedures

    Can I combine ncftp with shell scripts for example, I would like execute a command on the regular shell then go to ftp prompt do some things on the prompt, then come back to regular shell execute some commands and then go back to the ftp prompt again
  20. hmehta

    Can one write script to automate ftp procedures

    where can I get information on ncftp

Part and Inventory Search

Back
Top