Search Results

Search: Posts Made By: Srini75
1,870
Posted By Srini75
command to search for a wod in a line
Can some one help me in finding a "word" in a line ??

ex :

line : = "You may choose an icon for your message "

i want to search for the existance of the word "message"

thanks
sri
3,469
Posted By Srini75
file reading issue
Perderabo/ mahendramahender

Hope this will explaing you better



Thanks
Srini
3,469
Posted By Srini75
My actual proble is : i have a file as below...
My actual proble is :

i have a file as below

AAAAAAAAAAAA
-------------------
-------------------
-------------------
BBBBBBBBBBBBBB
AAAAAAAAAAAAA
-------------------...
3,469
Posted By Srini75
is there any way to read a line twice in KSH
Hi All,

Is there any way to read the previous line in file reading ?
or

is there any way to read a line twice in KSH ?


thanks in advance !!
Srini
2,415
Posted By Srini75
Hi Perderabo, It works fine . But...
Hi Perderabo,


It works fine .

But can you please explain me what exactly happening here ,

sed -n -e ":l" -e "h;n;s/$1/$1/;t m" -e "b l" -e ":m" -e "H;n;H;g;p"

and what if,

if I...
2,415
Posted By Srini75
Hi Perderabo, will it work in Linux .. ...
Hi Perderabo,

will it work in Linux ..

can you please let me know , how to run this .

Assumig file name is abc.txt and the search string is "ccccccc"


is it correct

./script.sh ...
2,415
Posted By Srini75
Need help - from awk, sed experts
Hi ,

I have a file as below.

Contents of the file are
--------------------
aaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaa
bbbbbbbbbbb
ccccccccccc
ddddddddddd
aaaaaaaaaaa...
1,753
Posted By Srini75
Thanks, It works ..
Thank You Perderabo

It works fine..

Thanks
Srini
1,753
Posted By Srini75
Need help - script for ftp..
I have my ftp script as below..

This is logging the messages into ftp.log file ,

But I want the same output(what ever messages are going into ftp.log) to be printed on the console too for the...
1,294
Posted By Srini75
is this possible ?
when ever you execute a command the out put has to be shown on the console as well as into a file .

Ex : /usr/bin/ftp -i -v -n > ftp.log

Here the output has to be sent to ftp.log file as well...
1,749
Posted By Srini75
How to find the string in between
I have a file as follows

******************************************
cccccccccc

aaaaaaaaaa

bbbbbbbbbb

cccccccccc

dddddddddd

cccccccccc
******************************************
...
3,982
Posted By Srini75
I have taken the code from this link . ...
I have taken the code from this link .

https://www.unix.com/showthread.php?p=33233#post33233


I have verified the logs, there are no errors..

mail is getting delivered in the inbox.
3,982
Posted By Srini75
The size of the file is only 15 KB.
The size of the file is only 15 KB.
3,982
Posted By Srini75
Outlook is getting hanged - sendmail
Hi,

Problem with Sendmail

When I receive the mail in my outlook, (sent using sendmail ) , Outlook is not working properly( its getting hanged).I am using the script which is available in this...
1,534
Posted By Srini75
Hi Vino, It works fine in the console , but...
Hi Vino,

It works fine in the console , but what if , If I want to update the same srini.txt with the new string.

I mean srini.txt should contain

case $TERM in
"case1")
script1
;;...
1,534
Posted By Srini75
need sed script
Hi

I have the following script in a file

case $TERM in
"case1")
script1
;;
"case2")
script2
;;
esac

I Need a sed script whcih will perform the...
2,828
Posted By Srini75
Thanks, It works ..
hi vgersh99,


Thanks for your help,

Can you please explan me what actually is happening when we execute the above command ??


i.e nawk '!a[$NF]++' file.txt

Thanks
Srini
2,828
Posted By Srini75
It works fine , but
Thank you everyone, it works fine ,

But I have some other problem now , The result file is coming as

Sep 28 11:09:33> Error on trans: 2
Sep 28 12:10:42> Error on trans: 1
Sep 28 12:10:43>...
2,828
Posted By Srini75
Removing dupicate lines in the file ..(they are not continuous)
I have duplicates records in a file, but they are not consecutive. I want to remove the duplicates , using script.

Can some one help me in writing a ksh script to implement this task.



Ex...
3,003
Posted By Srini75
Thanks a lot guys !! it works Thanks ...
Thanks a lot guys !!
it works


Thanks
srini
3,003
Posted By Srini75
Thanks Jim ; I am not looking for that: ...
Thanks Jim ;

I am not looking for that:

I am looking for a solution for as follows

If I pass

1234

it has to get me


some line
some line
some line
some line


ABCD
3,003
Posted By Srini75
Need Script for getting the line between two characters
Hi

can someone help me in writing a Ksh script to get the line between two characters

Problem:
I have a file which has data as below

abcd :
some line
some line
...
Forum: SCO 08-26-2005
8,149
Posted By Srini75
Need Script to check whether user exists in the remote machine
Hi All,

I am new to shell scripting.

Can someone let me know, how to check whether the user exists in the remote system?

I am building a new unix box and before I proceed installing the...
Showing results 1 to 23 of 23

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