Search Results

Search: Posts Made By: maxmave
2,892
Posted By maxmave
Logging into another UNIX box
Hello All,

Is there any UNIX or KSH Command to login to an linux/unix server and execute a command and then come back to the original server where u have executed the command.

For Example:...
6,023
Posted By maxmave
Masking Content of a String
Hello,

I need to know that whether a content of a string can be hidden or masked inside a shell script.

My Sample Code is given below

<Code>
#!/usr/bin/ksh
Userid=test
DB=temp...
2,272
Posted By maxmave
got the solution guys its TXT=`echo $line | sed...
got the solution guys its TXT=`echo $line | sed -e 's/.* //'`

Thanks

rahul
2,272
Posted By maxmave
Replacing a word after a matched pattern
Hello,

Actually i want to replace the word after a matched pattern.

For Ex:
lets say that i am reading a file line by line

while read line
do
echo $line
# i need to search...
3,108
Posted By maxmave
Replacing a line in a file - HELP!!!
I have a problem in the following code ...

while read line
do
#Get Line Number
OLDLINE=`sed -n $Lineno $filename`
echo "Un Changed Line : "$OLDLINE
echo "Enter a New Pattern : "...
5,722
Posted By maxmave
Replacing a string in nth line
Hello All,

How to replace a string in nth line of a file using sed or awk.

For Ex: test.txt

Line 1 : TEST1 TEST2 TEST3
Line 2 : TEST1 TEST2 TEST3 TEST4
Line 3 : TEST1 TEST2 TEST3 TEST5...
2,173
Posted By maxmave
Regular Expressions HELP - PERL
Hello,

$line=USING (FILE '/TEST1/FILENAME'5000)

I want to reterive the value between ' and ) which is 5000 here.

i have tried out the following expressions ...

Type 1 : $Var1=`sed -e...
2,372
Posted By maxmave
Regular Expressions HELP - PERL
Hello,

$line=USING (FILE '/TEST1/FILENAME'5000)
I want to reterive the value between ' and ) which is 5000 here.

i have tried out the following expressions ...

Type 1 : $Var1=`sed -e...
2,410
Posted By maxmave
Perl Pattern Matching !!! Help
Hello

I got the below one from in one of this forums

For Ex: Loading File System Networking in nature

now i need to extract the patterns between the words File and Networking :

i.e....
1,972
Posted By maxmave
Shell or PERL Logic
Hello All,

Currently i am working on a logic in PERL scripting ...

But i am sort of stuck up, can any one please help.

Here goes.

1. Search for a pattern in a file
2. If the pattern...
21,912
Posted By maxmave
Hey Thanks era.. Regards Rahul
Hey Thanks era..

Regards

Rahul
21,912
Posted By maxmave
GREP and Retrieve Line by Line
Hello All,

I have a doubt in grep,

lets say using grep we have the result as four lines ....

grep -i test*

Results :

Line 1
Line 2
Line 3
Line 4

how can i reterive line 1 into a...
3,369
Posted By maxmave
Pattern Matching problem in UNIX
Hello All,

I need help I have a problem in searching the pattern in a file

let us say the file contains the below lines

line 1 USING *'/FILE/FOLDER/RETURN')
.................
...
4,741
Posted By maxmave
Hello Era, Thanks for the corrections, it...
Hello Era,

Thanks for the corrections, it really worked.

I am just beginner to scripting, that why iam rusty.

but your suggestions really helped me, will correct the mistakes.

Thanks
...
4,741
Posted By maxmave
Help !! Pattern Matching in PERL
Hello,

I have a pattern like "XXXXXX XXXXXX" which i need to make search in a input file and Replace the matched pattern to a another pattern.

This is the code i tried ..

#!/usr/bin/perl...
3,238
Posted By maxmave
My Question is If we need to redirect the error...
My Question is If we need to redirect the error output to a text file in shell script

we can do by using this ksh test.ksh 2> errorfile.txt
or We can do a Exit Status check as below ..

if [...
3,238
Posted By maxmave
Error file Redirection
Hello All,

I was wondering is there any other way in Shell Scripting to redirect the errors to a output file inside a shell script with using a error status checking or a command line redirection....
21,190
Posted By maxmave
Thanks Jack for the snippet. Regards ...
Thanks Jack for the snippet.

Regards

Rahul
21,190
Posted By maxmave
No this is not a homework, i was wondering how to...
No this is not a homework, i was wondering how to do this.

Thanks

Rahul
21,190
Posted By maxmave
First letter of each Word from a line
Hello All,

I am new to UNIX, how do i get the First letter of each Word from a line in shell scripting.

For Example
line = "The Jack In The Box"

I want to reterive The letters T for The, J...
19,050
Posted By maxmave
File size in AIX
How can i find a Text File Size in AIX Environment in a shell script.

Are there any specfic commands for that??

Thanks in Advance

Cheers !!!

Rahul
Showing results 1 to 21 of 21

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