Search Results

Search: Posts Made By: gvkumar25
4,350
Posted By gvkumar25
Thanks for your reply. I don't want to exit the...
Thanks for your reply.
I don't want to exit the script if none of child process fails. I want to exit only if my child process fails.
I tried below code snippet more like your solution only.

...
4,350
Posted By gvkumar25
one Idea came into my mind is pass the...
one Idea came into my mind is

pass the parent process id to child and kill parent in child process if child process fails.
correct me if I am doing it in wrong way.


#!/bin/ksh
P_PID=$$...
4,350
Posted By gvkumar25
Fail Parent Script if any of the child fails
I have requirement where I need to fail parent if any one of the child process fails. Here is the code snippet




for i in 1 2 3 4 5 6 7 8 9 10
do
child_script $i &
done

wait


I need...
1,071
Posted By gvkumar25
My code is in the way you showed me but when I...
My code is in the way you showed me but when I echo inside my for loop I am getting below o/p
Daily|xyz|abc_def_tem_[0-9]\\8 instead of Daily|xyz|abc_def_tem_[0-9]\{8,\}
1,071
Posted By gvkumar25
I am using a k shell. while read -r record ...
I am using a k shell.

while read -r record
do
echo $record
done <<< $(sed -n '4,$p' source_file)
1,071
Posted By gvkumar25
REGEXPRESSION Getting wrongly
Hello Experts,

My requirement is to read a file which contains regular expression and use that expression in my find command.I will not use all the regular expression which is there inside the...
1,144
Posted By gvkumar25
Hi I am getting below error when I formatted my...
Hi I am getting below error when I formatted my code

#!/bin/ksh
set -x
fixed_output_format()
{
domain=$1
file_reg=$2
file_freq=$3
file_name=$4
file_counter=$5
record_cnt=$6
...
1,144
Posted By gvkumar25
File formating
I need to create a fixed width file based on the column lengths.
lets assume I have six(this may be dynamic) fields each are of different length

column1=6 #size of the column
column2=3
...
865
Posted By gvkumar25
Hi Rudic, Thanks for your reply its typo...
Hi Rudic,

Thanks for your reply its typo mistake. I corrected the #1 post.

My code was without $ only. It is not working
865
Posted By gvkumar25
How to print using awk?
Hi All

I have stored my column position in a variable. This variable is derived using some logic


x='$3,$4,$5'

now I want to use that variable and want to print the data using awk

awk ...
2,600
Posted By gvkumar25
It is working as expected but can you please...
It is working as expected but can you please explain me the code
2,600
Posted By gvkumar25
Hi Don, Thanks For your reply. Sorry...
Hi Don,

Thanks For your reply.

Sorry for the confusion. What I need is all the fields which are there in ctrl file and in the same order which are there in control file.



source file...
2,600
Posted By gvkumar25
Hi Rudic, Thanks for your reply. Could...
Hi Rudic,

Thanks for your reply.

Could you please elaborate the code. I am not an expert.

My requirement
-----------------
We have so many fields in the source file but We may not be...
2,600
Posted By gvkumar25
Printing $values using awk
Hi All

I had requirement where I need to re-order columns in a file by using a control file.

here is the ctrl file
c1
c2
c3

source file
c3 | c1 | c2
a | b| c
I should create output...
5,777
Posted By gvkumar25
Hi Sea, Thanks for your reply. What I am...
Hi Sea,

Thanks for your reply. What I am looking is to format the out put. I want to format even when we have an error. It is working fine when we have o/p but it is failing when we have an...
5,777
Posted By gvkumar25
Basically what I am looking is to format command...
Basically what I am looking is to format command out put. I tried in below way also
ls -lrt 2>&1 | output_log
[INFO][Feb 08 16:11:10] total 112


I can see only first line in the output....
5,777
Posted By gvkumar25
the above script is not working when we have an...
the above script is not working when we have an error.
ls x |output_log
x not found
[INFO][Dec 12 10:37:17]

when I run again
]ls test_file | output_log
[INFO][Dec 12 10:47:10] test_file

...
660
Posted By gvkumar25
Fomatting o/p
Hi Team,

I am getting newline character when I ran below script.

What I doing in the script is just formatting the input provided to that script and printing.

Output_Logging()
{
var=$1...
5,755
Posted By gvkumar25
Thanks for your reply. I cannot use Ftp as it...
Thanks for your reply. I cannot use Ftp as it was not secured. I need only secured transfer. I installed Cygwin on my windows machine and I tried to transfer file from windows or vice versa. it...
5,755
Posted By gvkumar25
Copying the files to Windows server from UNIX server
Hi Team,

I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to...
5,777
Posted By gvkumar25
What you are checking with -t option if [...
What you are checking with -t option

if [ -t 0]

I am not clear with this step
5,777
Posted By gvkumar25
How to pipe command output to shell script?
Hi Team,

Need a help on how to pipe a command out put to a shell script. My shell script looks like below.


cat shell_script
#!/usr/bin/ksh
input =$@
echo " we are inside the shell...
2,661
Posted By gvkumar25
Can you please share me the method without using...
Can you please share me the method without using temp files. The problem I had is my data files are in GB's (20GB). My process takes more time to move 20GB of data into tmp file instead what I...
2,661
Posted By gvkumar25
Inserting Header to another file
Need your help in appending header(file1 contains header ) to my file2. I am using KSH AIX OS.
I know how to do with taking temporary files.
cat file1 >temp
cat file2 >>temp
mv temp ...
1,195
Posted By gvkumar25
thanks for your reply. I got the solution ...
thanks for your reply. I got the solution

made below changes to the code and it is working

test1()
{
while read line
do
echo $line
file_nm_convention=`echo $line | awk...
Showing results 1 to 25 of 39

 
All times are GMT -4. The time now is 04:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy