Search Results

Search: Posts Made By: manosubsulo
1,946
Posted By manosubsulo
danmero, Its working now. can you explain...
danmero,

Its working now. can you explain what does this sed command do's ??

Thanks.

---------- Post updated at 09:54 AM ---------- Previous update was at 08:46 AM ----------

danmero,
...
1,946
Posted By manosubsulo
danmero, it will split the line into two...
danmero,

it will split the line into two only. but i need to split 2 or 3 depends upon the text in the line.


sed 's/<Rule \(.*\)>/Rule, \1/' Sample.txt
Rule, expression="DeliverToCompID IS...
1,946
Posted By manosubsulo
Help with shell script - splitting
Hi,

I need to split the file lines in below format as.

Input file : Sample.txt

<Rule expression="DeliverToCompID IS NULL" invert="true">
<Rule...
55,349
Posted By manosubsulo
hey try this filepath=`pwd`
hey try this


filepath=`pwd`
952
Posted By manosubsulo
Need help
Hello All,

I need to group the rules into a single line. Please help me to solve this.

Below is the sample rule file

$ cat Rule.txt
<Rule field="PossDupFlag" value="Y" >
<Rule...
4,762
Posted By manosubsulo
ali560045, set pagesize 1000 linesize...
ali560045,


set pagesize 1000 linesize 1000 feedback off verify off heading off echo off
Replace the above line as
set pagesize 1000 linesize 1000 feedback off verify off heading on echo off
2,637
Posted By manosubsulo
Why can't you use awk for this. awk...
Why can't you use awk for this.


awk -F":" '{print $1,$2}' filename | while read path1 path2
do
echo $path1 $path2
done
2,328
Posted By manosubsulo
Try this... BEGIN { "date...
Try this...


BEGIN
{
"date +%d-%b-%Y" | getline d ;
print "WEA\t\t\t\t\t\t\t\t\t\tCLAIM AND APPROVAL REPORT";
print "REPORT RUN DATE: ",d;
print...
8,144
Posted By manosubsulo
Try this.. may help u cat file.txt | tr...
Try this.. may help u


cat file.txt | tr -s '\t' ' ' > t.txt
3,290
Posted By manosubsulo
Hey, i had tried in nawk.. its working fine.. ...
Hey, i had tried in nawk.. its working fine..

Thanx
3,290
Posted By manosubsulo
Hi, It gives error as, awk: syntax...
Hi,

It gives error as,

awk: syntax error Context is:
>>> NR!=1 && $1 ~ /1=/{printf "\n"}{printf} <<<

i had changed the printf to print and tried, o/p as

awk 'NR!=1 && $1 ~...
3,290
Posted By manosubsulo
Display mutiple line in single line
Hi All,

I had a file called Input.txt, i need to group up in a single line as 1=ttt and the no of lines may vary bewteen the 1=ttt


cat Input.txt
1=ttt,2=xxxxxx, 3=4545
44545, 4=66667...
8,858
Posted By manosubsulo
Try this... ssh -l ora${sid}...
Try this...


ssh -l ora${sid} ${primaryhost} "awk '{print $3,$4,$5,$6}' /oracle/$ORACLE_SID/sapbackup/back$ORACLE_SID.log" | while read t1 t2 t3 t4
do
tap1=`echo "$t1 $t2" | sed...
7,815
Posted By manosubsulo
Try this.. Tokill=`ps -fu release | grep...
Try this..


Tokill=`ps -fu release | grep PROterm | awk '{print $2}'`
kill -9 $Tokill


P.S : Before issuing the kill cmd, print that pid chk it.
7,815
Posted By manosubsulo
You can use both. ps -ef | grep PROterm...
You can use both.


ps -ef | grep PROterm | grep release
ps -fu release | grep PROterm
34,907
Posted By manosubsulo
if logA is dedicated to Script A means, we can...
if logA is dedicated to Script A means, we can make it simple.

Whenever the Script A writes to the log file.after that line call the script S to send email.
1,566
Posted By manosubsulo
Try this.. find . -name "*.html" -exec...
Try this..


find . -name "*.html" -exec grep -l '2392' {} \;


The above code will display the file name. u can stick ur rename logic here.
1,493
Posted By manosubsulo
Pablo_beezo, keep the xxxx value in...
Pablo_beezo,

keep the xxxx value in separate file (Inc.csv). while the script starts, read the content in that file and increament by one. At the end of the script move the incremented value to...
4,948
Posted By manosubsulo
echo "AJIT" | tr [A-Z] [a-z]
echo "AJIT" | tr [A-Z] [a-z]
3,374
Posted By manosubsulo
Try this... grep "2008-10-14" Archiver*...
Try this...


grep "2008-10-14" Archiver* | grep 'CleanLPDataMessage: Missing Intervals' | awk '$6=="CleanLPDataMessage:" {t+=$9} {next} END {print "Total CleanLPDataMessage: Missing Intervals...
1,483
Posted By manosubsulo
Try this ... sed -e 's/\, /\|/g' -e 's/\...
Try this ...


sed -e 's/\, /\|/g' -e 's/\ \/\ /\//g' naveed.txt
2,672
Posted By manosubsulo
Try this.. ls -1 *.scr
Try this..


ls -1 *.scr
1,483
Posted By manosubsulo
Tyr this ... sed 's/\, /\|/g' naveed.txt
Tyr this ...


sed 's/\, /\|/g' naveed.txt
146,666
Posted By manosubsulo
I had found the answer for this. there is an...
I had found the answer for this. there is an command called script in unix which will make record of a terminal session (like spool does in oracle). to stop the spooling type exit.
2,507
Posted By manosubsulo
radoulov, Its not working. it display...
radoulov,

Its not working. it display everything from start of typedef struct till the end.
Showing results 1 to 25 of 87

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