how to write shell scrit which adds parameters to existing files
Helo I have one file in that one filed is there
RECLEN: 5
now I want to write a shell script which incresaes the value of RECLEN by 126
as well as I want to write shell script which adds
CURPHONER:2:N:Phone used to call a record on which a recall is set
PHONECNTR:2:N:Number of attemmpts at calling RECALLNUMBER to the existing files
now I want to write a shell script which incresaes the value of RECLEN by 126
as well as I want to write shell script which adds
CURPHONER:2:N:Phone used to call a record on which a recall is set
PHONECNTR:2:N:Number of attemmpts at calling RECALLNUMBER to the existing files
how to write such shell scripts
Regards,
Amit
Helo I want to change my problem statement little.
CURPHONER:2:N:Phone used to call a record on which a recall is set
PHONECNTR:2:N:Number of attemmpts at calling RECALLNUMBER to the
to the existing files file1,file2 in one sort and
as well as I want to write a shell script which incresaes the value of RECLEN by 126.
e.g. I have two list1.fdict ,list2.fdict
when I do in my script
echo "CURPHONER:2:N:Phone used to call a record on which a recall is set" >> /opt/avaya/pds/amit/*.fdict
I got following error:
line 5: /opt/avaya/pds/amit/*.fdict: ambiguous redirect
You can't redirect the line to a selection of files this way. Loop through the files like this:
Regards
thx for your reply.
Now I want to following lines to .fdict file . also if this line already exist then dont want to add. tell me how to write such effiecient script
CURPHONER:2:N:Phone used to call a record on which a recall is set
PHONECNTR:2:N:Number of attemmpts at calling RECALLNUMBER
PHONESTATR:1:C:PHONESTAT of the current RECALLNUMBER
ZONEPHONER:1:C:Time zone of the current RECALLNUMBER
LASTDATER:10ate of last attempt on RECALLNUMBER
LASTTIMER:8:T:Time of last attempt on RECALLNUMBER
LASTSTATR:2:C:Stat of last attempt on RECALLNUMBER
FRSTDATER:10ate of first attempt to call RECALLNUMBER
FRSTTIMER:8:T:Time of first attempt to call RECALLNUMBER
FRSTSTATR:2:C:Stat of first attempt to call RECALLNUMBER
SCNDDATER:10ate of second attempt to call RECALLNUMBER
SCNDTIMER:8:T:Time of second attempt to call RECALLNUMBER
SCNDSTATR:2:C:Stat of second attempt to call RECALLNUMBER
THRDDATER:10ate of third attempt to call RECALLNUMBER
THRDTIMER:8:T:Time of third attempt to call RECALLNUMBER
THRDSTATR:2:C:Stat of third attempt to call RECALLNUMBER
FRTHDATER:10ate of fourth attempt to call RECALLNUMBER
Hello,
I have a .xlsx file with 11 worksheets and I need to insert the contents of a text file (tab delim, roughly 30 columns with 1000 rows) from Row 3 onwards on the 2nd sheet. I have my code which can insert values into existing sheet but I am unable to write/import the contents of a text... (1 Reply)
Hello,
I have a .xlsx file with 11 worksheets and I need to insert the contents of a text file (tab delim, roughly 30 columns with 1000 rows) from Row 3 onwards on the 2nd sheet. I have my code which can insert values into existing sheet but I am unable to write/import the contents of a text... (0 Replies)
Hi,
Since today, with csh or tcsh, if I do 'ls files* > list',
every lines end with an extra space!
What happenned?
What can I do to go back when there was no extra space?
If I change to bash, there's no extra space.
Thanks,
Patrick
---------- Post updated at 03:19 PM... (1 Reply)
Hi ,
I am not familiar with shell programming. I have a requirement like i have two files
.I need to compare the two files by comparing each parameter and i should produce 2 outputs.
1)i have around 35 parameters say i have one parameter name called db_name=dcap in one file and... (7 Replies)
Hello ,
I want to write a script to test the IP_add is hardcoded in the paticular files.
the files are available in path .
for example.
/abs/abn/jkg/frames.sh. like this some files are there in the same path.I
manually replaced the IP_ADD with domain name in required files.now i have to... (1 Reply)
Hello friends,
I am a script which dispalys a multiple files with their contents.
for exm:
suppose two file test1.txt and test2.txt.
when I run my script it have to display the below O/P.
test1.txt
-rw-r----- 1 sranga staff 91 Sep 23 02:18 calc.sh
-rw-r----- 1 sranga ... (2 Replies)
Hello,
I'm a newbie in shell script.
So, i would like to create a shell script which take 2 IN parameters (PARAM1 and PARAM2).
This script need to create 2 files as :
I need to create this file /etc/apache2/sites-available/PARAM2 :
<VirtualHost *:80>
DocumentRoot "/home/PARAM1/www"... (0 Replies)
Hi,
I have a script that works on a unix box but am trying to get it working on a linux box that uses shell. I am not a programmer so this is proving harder than I imagined. I made some changes and ended up with the script below but when I run it I get the following messages. Any help would be... (4 Replies)