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...
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...
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..
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]
}
}
}
{...
This doesn't work I chaged it to:
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]
}
}
}
{
for (all in arr) {...
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...
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 [ "$CHOICE"="y" ]; then
echo "The VERSION no you confirmed is $VERSION\n"
else
echo "Enter the version no for the VZevpsrc release...
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 [ "$CHOICE" -eq "y" ]; then
echo "The VERSION no you confirmed is $VERSION\n"
else
echo "Enter the version no for the VZevpsrc...
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 [ "$CHOICE -eq "y" ]; then
So I chnaged to
if [ $CHOICE -eq "y" ]; then
but then it didn't work when i entered y.
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?
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
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.