Search Results

Search: Posts Made By: roshanjain2
2,203
Posted By roshanjain2
hi
Can this be done using sed as well?
2,203
Posted By roshanjain2
hi
Thank you. A nice trick using back references however, if there are two "def" words within the same tag then the substitution to xyz would happen only for the second def. The first def in the tag...
2,203
Posted By roshanjain2
Hi
Thank you Balaji! I was actually looking for a solution using sed. is that possible? However, the above perl option is working as expected. Can you please explain the command by breaking it?
2,203
Posted By roshanjain2
Substitute partial data only within a xml tag
Hello,

I have huge xml files and I need to replace only part of the data within a particular xml tag. This doesnt seem to be as simple as it sounds. I have searched everywhere and couldnt find any...
2,612
Posted By roshanjain2
thx
thank you...working!
2,612
Posted By roshanjain2
thanks anbu... can u explain the syntax for...
thanks anbu...

can u explain the syntax for awk plzzzz...couldnt understand
2,612
Posted By roshanjain2
thanks
thanks guys...working gr8

but what if the files have the data in the following format

ddd, eee, ddd: 234
ddd, eee, ddd: 433

and i want to extract 234 and 433

something like extracting...
2,612
Posted By roshanjain2
awk bonds
I want to extract particular data from all the lines in a file

EX:
the files have the data in the following format

234, ddd, eee, ddd
433, ddd, eee, ddd

so i would like to extract only 234...
12,135
Posted By roshanjain2
Er..what if their names arent log1 log2 and...
Er..what if their names arent log1 log2 and log3....say if its xx yy zz..then???
12,135
Posted By roshanjain2
grep syntax for this...
I wanna grep for a pattern logs 1 2 & 3 within a folder containing 100 logs

grep "test" /folder/log1 /folder/log2 /folder/log3

The above command will work fine


but is there any command...
5,198
Posted By roshanjain2
thanks
Gr8!! now i am getting my commands to execute...didnt know ssh returns back after executing :-) Thanks...
5,198
Posted By roshanjain2
SSH usage in a script
I have configured ssh to a remote server without prompting for a password with the help of public keys...but now i am not able to execute any commands through a script

what i want is a one line...
2,849
Posted By roshanjain2
got it rectified!! there is no root access...
got it rectified!! there is no root access required :-)
2,849
Posted By roshanjain2
SSH Public key method
do we need root access for the remote server to ssh without a password(i.e by using id_rsa.pub method)???
13,796
Posted By roshanjain2
no use... just wanna try something...
no use...

just wanna try something else....when i use ssh username@hostname and execute the script...i am getting a password prompt...is it possible to write something that reads the passowrd from...
13,796
Posted By roshanjain2
username password in script
Can we write a script to telnet to a unix server from unix with the username and password hardcoded in the script??

something like ssh a@b -p password ???
4,387
Posted By roshanjain2
but i want to differentiate results got from each...
but i want to differentiate results got from each of the logs...the above command will display all the results in one screen :-(

eg:
log1
results
log2
results
log3
results
4,387
Posted By roshanjain2
single line command
i need to search for a single pattern in three different logs....what would be the best one line script????
1,357
Posted By roshanjain2
echo "Please enter the pattern below:" read...
echo "Please enter the pattern below:"
read pattern
echo -e "Scanning t1 Logs...\n"
grep -i $pattern /f1/log/t1.log*


it stops searching after the above line...i want the script to execute the...
1,357
Posted By roshanjain2
grep help
echo "Please enter the pattern below:"
read pattern
echo -e "Scanning t1 Logs...\n"
grep -i $pattern /f1/log/t1.log*
echo -e "Scanning t2 Logs...\n"
grep -i $pattern /f1/log/t2.log*
echo -e...
Showing results 1 to 20 of 20

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