Get all the filename starting with file* and store it in a array
count file number and store it in variable like run
Ex: I found 3 file with starting file* so my run = 3
means my loop should run three time
May be like this
for first filename, it search 'a' is there in the file if yes
echo ' a is exist'
else
echo 'a is not exist
run ++
so next time it again run and search 'a' in the second file to
echo ' a is exist'
else
echo 'a is not exist
run ++
Having trouble with the logic when looping over this switch case again:
for (j = 0; data != 0; j++){
switch(data){
case 'c':
output = ranit(r_brace_array);
break;
case 'h':
output = ranit(pipe_array);
break;
... (6 Replies)
Hi Gurus,
I need use "not in " logic in my script, like below
if $name not in exception_file_list, then do something.
anyone can help out this?
Thanks in advance. (5 Replies)
Hi all
I have a requirement where i have to develop a file compare tool.
Requirement:
I have one expected file and one actual file. Both the files are database dumps in a csv file comma seperated. The first line of the file has the column names.
Now there are 3 scenarios:
1) Firstly we have... (0 Replies)
Hello
i have a requirement where in a file i will get string. The length could be from 1 to 20. if the string is less than 6 characters ( ex: ABCD) . i need to append 'X' on right hand side to make it 6 characters (ex: ABCDXX). if suppose i get the same string from the file as ABCDXX then i... (5 Replies)