Search Results

Search: Posts Made By: midhun19
852
Posted By midhun19
yes its working ...thanks
yes its working ...thanks
852
Posted By midhun19
Hiding child when called in background
Hi,
I have 2 scripts, one of which is calling the other in background. I want only the output of the parent script on the
output

parent.ksh
#!/bin/ksh
set -x
echo "Calling child."
....
4,117
Posted By midhun19
thanks
thanks
4,117
Posted By midhun19
Kill child processes when exit
Hi,
I have parent script which is invoking multiple child scripts. I would want to kill all the child processes before the parent
process exit.

> cat ./parent
#!/bin/ksh
while [ condition ]...
17,983
Posted By midhun19
Thanks... its working
Thanks... its working
17,983
Posted By midhun19
Thanks, its working for me ---------- Post...
Thanks, its working for me

---------- Post updated at 01:25 PM ---------- Previous update was at 05:45 AM ----------




is it possible to pass the pattern in a variable

...
17,983
Posted By midhun19
this is working fine for me... Thanks a lot ...
this is working fine for me... Thanks a lot

is it possible to pass the value in a variable. I tried the below


awk -F, '/1,jobname1/ {$3="completed";$5="${temp_date}"} 1' OFS="," file

...
17,983
Posted By midhun19
Thanks for the reply I can take only...
Thanks for the reply

I can take only "1,jobname1" as the search string and i want update any column on that line.

ie, I would like to search with string "1,jobname1" and update 3rd column...
17,983
Posted By midhun19
Update field value on a csv file
Hi
I have a job status csv file. I want to update the status of the job in the file.
Below is the csv file

1,jobname1,in_progress,starttime,somthing,somthing...
1,388
Posted By midhun19
i tried and got the result as : awk...
i tried and got the result as


: awk -F, '{$2=$2 FS "status,starttime"} 1' test.dat
1 jobname1,status,starttime somthing somthing
2 jobname2,status,starttime somthing somthing
3...
1,388
Posted By midhun19
Inserting new fields to a csv file
hi
I have a csv file with few rows


> cat job_stat
1,jobname1,somthing,somthing
2,jobname2,somthing,somthing
3,jobname3,somthing,somthing
4,jobname4,somthing,somthing


I want to add...
23,873
Posted By midhun19
Multiple arithmetic operations in a single line
hi,

I want to do multiple arithmetic operations in a single line. I tried with the following line

total_size=`expr ($total_size + $file_size) / 1024`

this line is throwing me error.
...
1,045
Posted By midhun19
thanks ...it worked
thanks ...it worked
1,045
Posted By midhun19
sed replacing required newlines
hi
i have a requirement to replace a string with another using sed and to get the result newline separated but after sed replacement the newline vanishes
below is sample code


#!/bin/ksh...
25,304
Posted By midhun19
I couldn't get it done by this way ...
I couldn't get it done by this way

IFS=$'\t' read name age address

i changed to


IFS=" " read name age address


and was working

thanks
25,304
Posted By midhun19
splitting tab delimited strings
hi
i have a requirement to input a string to a shell script and to split the string to multiple fields,
the string is copied from a row of three columns (name,age,address) in an excel sheet.
the...
24,328
Posted By midhun19
Thanks ... that is working
Thanks ... that is working
24,328
Posted By midhun19
the operating system is AIX version 6 ...
the operating system is AIX version 6

ux2dos and unix2dos are not in the system.... is there any other way to convert the files into dos format
24,328
Posted By midhun19
i tried the command sed 's/$/\r/'...
i tried the command

sed 's/$/\r/' <samplefile.txt >sampleflie.win.txt

there is no change in the way i see the text in the mail attachment, i checked in the text file (changed by the command)...
24,328
Posted By midhun19
[Solved] line breaks missing when emailed from unix to win
hi

i am sending an email from unix to windows platform and using uuencode to attach the plain text files (.txt). But when i read the attached file in notepad the linebreaks are gone.

...
1,523
Posted By midhun19
this command is working ....thanks can i...
this command is working ....thanks

can i know what does this mean
$par1[ ]*[^ ]*
1,523
Posted By midhun19
sed replace
Hi,

i have a file as give below

>cat sample_file
param1 val1 2012-06-19

##there can be one or more space after 2012-06-19 in the above file

i want to replace val1 with a with value...
1,767
Posted By midhun19
yes thats working ...thanks
yes thats working ...thanks
1,767
Posted By midhun19
getopts usage
Hi, I have a ksh, where in im using getopts. below is the sample script


#!/bin/ksh
set -x
while getopts j:s:b:e: opt; do
case $opt in
j) var3=${OPTARG};;
s) var1=y;;
b) var2=y;;
e)...
4,686
Posted By midhun19
thanks ...this will work for me
thanks ...this will work for me
Showing results 1 to 25 of 36

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