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

  • Users: hmehta
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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.
  4. 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] } } } {...
  5. 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...
  6. 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...
  7. 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...
  8. 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?
  9. hmehta

    Can one write script to automate ftp procedures

    How can one write script to automate procedure on ftp prompt. Liek doing cd, lcd and then do get etc ?
  10. hmehta

    How can I do this?

    How can I do the following: In my file I do not know where this string will come but whenever I see the following two lines in the following format I need to extract two things. a. The complete String minus the special characters(<-->)in line 1 b. The 866 phone no in line2. Also I cannot be sure...
  11. hmehta

    Extract nos from the file

    Hoe can I use awk to extract the nos from the following xml file. I want the output to look like: staging: 8662578522 uat:86634422000 <!--staging--> <if cond=&quot;session.telephone.dnis=='8662578522'&quot;> <!--uat--> <if...
  12. hmehta

    How to extract file names from a fiel and remove them

    How to remnove files in a file with awk comand. For exampe if a file has the folowing file names at eights field. file1 file2 file3 file4 I want to extract all these file names and remove them from the directory.
  13. hmehta

    AWK script for splitting a line

    I have a file with phone nos 9728993456 as the first filed. I need to split inoo 972-899-3456 . How can I do it in awk.

Part and Inventory Search

Back
Top