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...
I have text of this format throughout the file
<audio src="../prompts/say_name_you_want_to.wav">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...
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.
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, "records read from", fn
for (x in arr) {
if (arr[x] !~ /!!.*!!/) {
delete arr[x]
}
}
}
{...
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...
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 "Enter the version no for the VZevpsrc release \n"
read VERSION
echo "The VERSION no you entered is $VERSION\n"
echo...
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...
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?
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...
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="session.telephone.dnis=='8662578522'">
<!--uat-->
<if...
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.