Search Results

Search: Posts Made By: svenkatareddy
1,806
Posted By svenkatareddy
Search in xml tags
I have a xml file like below. I want to search in <msg>, if found corresponding tag path needs to fetch.

for eg: for the message 'RM1659 Boeing Exception Management' it should return...
3,971
Posted By svenkatareddy
>cut -d";" -f1,2,4 <scottn.txt | sort | uniq -u |...
>cut -d";" -f1,2,4 <scottn.txt | sort | uniq -u | gawk 'IFS=OFS=FS=";"{print $1,$2,".*",$3}' >match.txt
>grep -f match.txt <scottn.txt

sort -t\; -k1,1 -k2,2 -k4,4 scottn.txt | sed 's/[^;]*;/*;/3'...
3,971
Posted By svenkatareddy
Corrected the fields
Corrected the fields
6,245
Posted By svenkatareddy
YESTERDAY=`TZ=CST+24 date +%Y%m%d`
YESTERDAY=`TZ=CST+24 date +%Y%m%d`
3,971
Posted By svenkatareddy
Remove duplicate records
I want to remove the records based on duplicate. I want to remove if two or more records exists with combination fields. Those records should not come once also

file abc.txt

ABC;123;XYB;HELLO;...
14,741
Posted By svenkatareddy
Equivalent of set -o vi in csh
Hi,

I am working with two shells on two different users. one is on ksh and one is on csh.

In ksh I use set -o vi and I am able to see my history commands by typing esc,- keys.

I want the...
1,863
Posted By svenkatareddy
I want to create self extraction exe file in...
I want to create self extraction exe file in solaries.

this is possible with licensed pkzipc, but I want with free built in solaries command
1,863
Posted By svenkatareddy
self extraction zip for windows
Hi

I want to create self extraction archive file(exe) that should support in windows with out any zip software.

I know pkzip does it. But this is licensed software. Is there any command that...
1,767
Posted By svenkatareddy
grep -v '^-'
grep -v '^-'
1,820
Posted By svenkatareddy
Find sum of 4 columns
Hi,

I have a file GLDATA with the fields like below.
200909,20
200908,22
200907,19
200906,25
200905,20
200904,21

I want to write a code to sum up the second column for values from 200909...
1,685
Posted By svenkatareddy
Need Regular expression
Hi,

I want to find the records using grep with following conditions.

one field position at 26 and having length 2 and values of 21,24,31,34 or
another field position at 28 and length 2 of...
9,852
Posted By svenkatareddy
Add end of char \n on end of file
Hi,

I want to add \n as a EOF at the end of file if it does't exist in a single command. How to do this?

when I use command
echo "1\n" > a.txt

and
od -c a.txt
0000000 1 \n \n...
2,930
Posted By svenkatareddy
How to read mail attachement
I want to read attachements sent to unix mail id and save the attachement in folder.

I may receive the mails from different mail clients(outlook, lotus ..etc).

Attachements are in CSV(comma...
1,632
Posted By svenkatareddy
Rename file last char
I want to rename the file from below format to

ABCDEFCGHF20090112345623.DAT to

ABCDEFCGHF20090112345624.DAT

the last digit before dot to increment to 1. if it 9 should become 0

How to...
5,092
Posted By svenkatareddy
SSH login with user name and script.
I want to login to server using ssh or telnet and execute one command then exit to the shell
Please let me know how to write script for this?
4,205
Posted By svenkatareddy
Change of date format
I want to chnage the date format from the file format like below to

WT;T15D;0000007208;;20080401;3;0;0;3;;B;ZZZZZZ;
WT;T25D;0000007208;;20080401;6;0;0;6;;B;ZZZZZZ;...
22,921
Posted By svenkatareddy
grep -c '^M$' filename
grep -c '^M$' filename

if it zero then it is in unix format.

It is working. Correct me if any exceptional case if it fails.

Note that ^M has to be typed with control-v and enter.(Not by...
22,921
Posted By svenkatareddy
Test file format
Can any one tell me how to test file is in dos format or Unix format?
39,943
Posted By svenkatareddy
Color putty
Right now I am using putty.

I am using 2-3 terminals at a time. To differentiate each termianl I want to put each putty screen and background color to different colors. I tried changing the colors...
2,470
Posted By svenkatareddy
Sed,nawk for inputfile and out put file same
Hi,

I am using sed and nawk command for replace/add/remove on file records.

But when I am using the inputfile name and directing output to the same inpu name file becomes empty.
I don't want...
1,889
Posted By svenkatareddy
How to diply Files that are not ended with .sh
Cal any one let me know how to disply the files that are not ended with .sh

Is there any command that to reverse the regular expression.
ls -l *.sh displys all files ended with .sh exactly...
Forum: Solaris 03-05-2008
41,263
Posted By svenkatareddy
putty to change screen colours
Can any one tell me how to change the screen colors of the screen when connected unix using putty. I tryed setting from colors but it's not happening
Forum: Solaris 03-03-2008
3,239
Posted By svenkatareddy
How to send a mail using elm in cc list?
Can any one tell me how to use elm to send mail using CC list with command line ?

I need to write script to send mail to TO list as well as CC list
Not using elm editor.

Regards,
Venkat
2,738
Posted By svenkatareddy
How to send a mail using elm in cc list?
Can any one tell me how to use elm to send mail using CC list with command line ?

I need to write script to send mail to TO list as well as CC list
Not using elm editor.

Regards,
Venkat
Forum: Solaris 02-28-2008
9,045
Posted By svenkatareddy
Thanks..
It's working
Showing results 1 to 25 of 27

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