Choose the option
-----------------
1.Input
2.Output
3.CFT Uniq
x.Exit
-----------------
2
Enter the Output flow IDF
PBL5572U
Enter the Output existing flow IDF
PBL5198H
sf_PBL5572U.cmd file exist in invalid path or doesn't exist
diff: input file /apps/cftpkg2b/3.1.3/filusr/sf_PBL5572U.cmd: No such file or directory
The sf_PBL5572U.cmd coding is correct
Coding:
Please look at the above coding and output.
The ultimate aim of the program is finding the difference in two files on the location /apps/cftpkg2b/3.1.3/filusr.
What I have done is
(consider only option 2)
1. input of first file
2. Input of second reference file (usually standard couple of files).
3. Checking the existence of input file in mentioned path.
if file exist, then display the file and find the difference between the files.
4. if there is a difference moving the difference into a new file(COMPFILE1).
and later manually we will check the difference and correct the file.
Now problem is in case the user gives the different file name and if the second input reference file is not available on that path , no difference is shown and user may think there is not difference in file contents. So this logic goes wrong .Please help to handle.
Last edited by Vijaykannan T; 05-02-2017 at 10:51 PM..
Reason: corrections
Hi all
I need help for the issue below.
I need to create script:
FORM_cmd=query || import
FORM_command=add
FORM_msisdn=389881234567
FORM_provcode=SK
FORM_attr=12
FORM_cmd can be "query" or "import"
when FORM_cmd="query" then execute -> spdci -cmd $FORM_cmd FORM_cmd
when... (3 Replies)
is_number()
{
echo $1|egrep '^*$' 2>&1 1>/dev/null
return $?
}why the following snippet always give an output as "no" and never "yes" whatever the parameter I give to function is_number?
if ]; then echo yes; else echo no; fi
In addition, the function is_number() is... (5 Replies)