Search Results

Search: Posts Made By: tdev457
3,144
Posted By tdev457
perl- oracle sql query
Hi,
I am new to perl.How to query oracle database with perl???
Thanks
2,028
Posted By tdev457
Formatting output
Hi,
I have a file like this
--------------------------
1 aaa xxx 55
--------------------------
1 aaa www 32
--------------------------
2 bbb yyy 11...
12,654
Posted By tdev457
Thanks!!!
Thanks!!!
12,654
Posted By tdev457
Pass values from web form to shell script
Hi,
is it possible to pass more values from web form like textbox to shell script and if yes,how to do that.:confused::confused::confused:
962
Posted By tdev457
Ok-I solved problem.You need to use sudo to query...
Ok-I solved problem.You need to use sudo to query database.
962
Posted By tdev457
how to do that???
how to do that???
962
Posted By tdev457
My script include this line already...
My script include this line already...
962
Posted By tdev457
Run shell using web
Hi,
I create shell script that can run using web browser.
The problem is when I put
echo "<pre> $(df -h) </pre>" I can see output in browser

But when I issue
echo "<pre> $(su -...
2,029
Posted By tdev457
is it possible to print screen to the printer???
is it possible to print screen to the printer???
2,029
Posted By tdev457
echo -e...
echo -e "\033[0;31m===============================\033[0m"
echo -e "\033[1;35mHeader!!!\033[0m"
echo -e "\033[0;31m===============================\033[0m"
echo -e "\033[0;33m HELLO ...
2,029
Posted By tdev457
print formatted text to the printer
Hello!!!
I am using shell script that print some formated text on the screen (example)
========
hello I am ...
========

Is it possible to print this information to the printer exactly as I see...
3,375
Posted By tdev457
Thanks bartus11!!!! This solved my problem ...
Thanks bartus11!!!!
This solved my problem

perl -i -0pe "s/(<name>TransferSifCen5.*?<cron-expression>0 )$oldtime(.*?<\/cron-expression>)/\${1}$newtime\2/gs" file.xml
3,375
Posted By tdev457
#15 22# #10 25#
#15 22#
#10 25#
3,375
Posted By tdev457
perl -i -0pe...
perl -i -0pe "s/(<name>TransferSifCen5.*?<cron-expression>0 ) $oldtime (.*?<\/cron-expression>)/${1} $newtime \2/gs" file.xml
3,375
Posted By tdev457
Thanks!!! It works... ---------- Post...
Thanks!!! It works...

---------- Post updated at 06:45 AM ---------- Previous update was at 04:55 AM ----------

what if 15 22 and 10 25 are stored in variables???Can't use $old and $new....
3,375
Posted By tdev457
<name>TransferSifCen2-trigger</name> ...
<name>TransferSifCen2-trigger</name>
<group>DEFAULT</group>
<job-name>TransferSifCen2Job</job-name>
<job-group>DEFAULT</job-group>
<cron-expression>0 15 22 * * ?</cron-expression>
....
3,375
Posted By tdev457
I am using bash!!! I want to simplify but i...
I am using bash!!!
I want to simplify but i made mistake.I have xml file with 400 lines.This is quartz jobs!!!
Based on criteria I want to replace particular line with something else.
After some...
3,375
Posted By tdev457
Search and Replace
Hi!!!
I have following xml file with 3 sections.

aaa1bbb-ccc
default
aaa1bbbdd
default
0 11 23 * *

aaa2bbb-ccc
default
aaa2bbbdd
default
0 11 23 * *

aaa3bbb-ccc
default
aaa3bbbdd...
3,454
Posted By tdev457
Remove line from file
Hi!!!
When I use vi editor my file looks like this:
aaa2: 123.45^M
aaa1: 11.34^M
aaa3:
aaa3: 15.56^M

How to remove only line 3 ???
Thanks!!!
32,191
Posted By tdev457
Thanks!!! I use this code before awk '{ SUM...
Thanks!!!
I use this code before
awk '{ SUM += $1} END { print SUM }' file
-----------------------------------------------------------------
Example:
cat file
-------------
13.45
2.11...
32,191
Posted By tdev457
Sum of decimal numbers in column
Hi!!!
I have n decimal numbers in column:
1.23
3.45
5.16
.
.
.
How to do arithmetic sum of theese numbers???
Thanks!!!:D
Showing results 1 to 21 of 21

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