Search Results

Search: Posts Made By: suneel.mekala
6,995
Posted By suneel.mekala
How to use variable in sftp
Hi ,

Can someone help me in how to use a variable in sftp.

Example:

FILE_LIST=file_list.txt
REMOTE_USER=user1
REMOTE_HOST=host1

sftp $REMOTE_USER@$REMOTE_HOST
cd /home/user1
get...
3,495
Posted By suneel.mekala
I need to write shell script only
I need to write shell script only
3,495
Posted By suneel.mekala
Hi, In my file the position of delimiter...
Hi,

In my file the position of delimiter ";" is not fixed.

some values may not be present in some records.

So i need to the value for of src(only if present in the record) which presents...
3,495
Posted By suneel.mekala
Hi Anurag/Homeboy, The below script is...
Hi Anurag/Homeboy,

The below script is working fine if my value is
"17/11/2010 15:16:39;reject;10.44.48.65;daemon alert; src: 10.44.48.112; dst: 172.21.52.88"

But if i tried with the below...
3,495
Posted By suneel.mekala
Hi R0H0N, I executed the below command ...
Hi R0H0N,

I executed the below command
echo "17/11/2010 15:16:39;reject;10.44.48.65;daemon alert; src: 10.44.48.112; dst: 172.21.52.88" | sed 's/.*; src: (.*); /$1/g'

but it is returning...
3,495
Posted By suneel.mekala
Thanks for your reply R0H0N. But it is...
Thanks for your reply R0H0N.

But it is returning the value as my input.
3,495
Posted By suneel.mekala
Identify the position of character
Hi,

Can some one guide me to identify the position of a character using index in UNIX.

I have a record like "17/11/2010 15:16:39;reject;10.44.48.65;daemon alert; src: 10.44.48.112; dst:...
1,478
Posted By suneel.mekala
Identifying specific fields in a Row
Hi,

I am new to UNIX. Can some one help me to solve the below.

I have a requirement to to identify the specific fields in row and also some part of the field.

In my file I have a record...
Showing results 1 to 8 of 8

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