Search Results

Search: Posts Made By: ramkiran77
4,205
Posted By ramkiran77
SFTP multiple options
Hi,

I am trying to SFTP files in a script that i created.

But the problem is i have to use -oPort and -b together. how can i get this done.

I have tried as below command in my script but...
920
Posted By ramkiran77
Hi Elixir, Thanks for the quick reply. ...
Hi Elixir,

Thanks for the quick reply.

I have tried "\r\n" but it seems to have no effect.

Outlook is still nullifying the line breaks.

Any other options that can get this thing done.
...
920
Posted By ramkiran77
AWK new line feature getting nullified in outlook
Hi,

I am using the below code to send mail to users showing the details of errors, and this happens in a loop till all the lines are validated.

printf...
5,966
Posted By ramkiran77
That worked, these spaces are taking me places. ...
That worked, these spaces are taking me places.

Thanks for all your help !!! :-)
5,966
Posted By ramkiran77
Please find below the code from the script that i...
Please find below the code from the script that i am using...


while read line
do
itemcode_check=`expr substr "$line" 6 1`
echo $itemcode_check
if [ $itemcode_check='*' ]; then
echo "$line"...
5,966
Posted By ramkiran77
Thanks ygemici & methyl, that changes seems to...
Thanks ygemici & methyl, that changes seems to have worked for the integer value expected error.

But even though it is comparing the strings, it is throwing the below error...
5,966
Posted By ramkiran77
expr: An integer value was expected
Hi,

I am trying to execute a simple script as below to compare a value from a file and copy that line based on a condition.

while read line
do
code_check = `expr substr "$line" 6 1`

if...
2,994
Posted By ramkiran77
Can i use trim in shell script ?
Hi,

I am stuck at comparing a value from database with a space involved.

Condition

if (cust_code != "RAMK" && cust_code != "LML")
{
xxxxxxx
xxxxxxx
xxxxxxx
}

the cust_code is from a...
2,944
Posted By ramkiran77
Need help to handle errors during SFTP
Hi,

I have written a script that sftp's files from linux box to a IBM machine.

Can anybody help me how to handle any errors during SFTP file transfer.

I am writing the SFTP commands onto a...
952
Posted By ramkiran77
Help on UDE usage
Hi,

i am stuck at a line which is using UDE in the script. Please see below.

ude.rmgen $email_file $LOAD_DIR


can somebody help me what exactly does this line does.

Thanks
Ramki
4,863
Posted By ramkiran77
how to save command into a file in linux
Hi

Can anyone suggest how i can save a command into a file.

i am trying to execute couple of put commands which i want to write into a file.

example below

put sample.dat abcd@server.com...
1,361
Posted By ramkiran77
Thank you for your replies guys... I tried...
Thank you for your replies guys...

I tried the code in red with the space

That did work a bit, it went into the while loop and printing the error message multiple times

Error message as...
1,361
Posted By ramkiran77
need help for finding files
Hi,

I am trying to find two files in a if condition to do a task

Please find below the script that i have built

while read line
do
filename = $line

if [[ -f $filename+".dat"] && [ -f...
1,963
Posted By ramkiran77
That worked
Kumaran,

That worked, the slash thing worked. Thanks a lot :b:

mann,

The sed also worked, i was actually using shift 6 to get that cap, that was the problem.Thank you. :b:

In the...
1,963
Posted By ramkiran77
Tried this
$ tr -d '14' < test_file_1.txt > test_file_2.txt

tried as above...but after the command execution, there is no change between the files i am still seeing the ^L
1,963
Posted By ramkiran77
mann2719, Thank you for your response i...
mann2719,

Thank you for your response

i am trying this in the script and the converted file am sending as inout to another script.

can you please suggest any option that i can use it in...
1,963
Posted By ramkiran77
Input file
Please find attached the input file i am using.
1,963
Posted By ramkiran77
Thank you for your response I tried the 'tr'...
Thank you for your response

I tried the 'tr' command but that did not work, no change in the data
1,963
Posted By ramkiran77
How to eliminate ^L
Hi,

I am trying to create a text file from data retrieved from a query.The data retrieved is having this character '^L' at regular intervals of the data.

How can i eliminate this, Please find...
Showing results 1 to 19 of 19

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