Search Results

Search: Posts Made By: singhald
13,600
Posted By singhald
SFTP using korn shell
Hi All,

I am able to SFTP files using the below command in my script.

sftp -b test.bat $user@$IP << EOF

i have written the following command in the test.bat file

put...
10,222
Posted By singhald
this solution is working, but i dont want to...
this solution is working, but i dont want to display messages to screen ...
10,222
Posted By singhald
i chnaged the statement if [ `echo $line | grep...
i chnaged the statement if [ `echo $line | grep -i "PATTERN"` ];
to if `echo $line | grep -i "PATTERN"` ; but this is not working
10,222
Posted By singhald
how to overcome this situation
how to overcome this situation
10,222
Posted By singhald
unknown test operator
hi all, i am using the below command in my script

if [ `echo $line | grep -i "PATTERN"` ]; then

This statement is causing the problme "ScriptName.ksh[51]: XXX-XXX: unknown test operator"
...
3,951
Posted By singhald
Please provide me the some help writing script in...
Please provide me the some help writing script in ksh
4,949
Posted By singhald
i want to pass both pattern values as arguments...
i want to pass both pattern values as arguments to a sql stored procedure for validation. i am aware about the sqlloader. i want to store both result set into array and access one by one both to...
4,949
Posted By singhald
fetching values using awk and storing into array
hi all

I am using awk utility to parse the file and fetching two different vaues from two different record of a record set.

I am able to see the result, now i want to store the result and...
3,951
Posted By singhald
Wow!!! Franklin your solution is working fine....
Wow!!! Franklin your solution is working fine. Thanks you Franklin, vidyadhar for your valuable and fast response

Singhal

-----Post Update-----

Hi Franklin,

Now if input file dont...
3,951
Posted By singhald
The solution is not working. the pattern is :...
The solution is not working. the pattern is : Program ID based on i need to split the files which will contians record set for all smimilar Program ID values
3,951
Posted By singhald
print records before and after the pattern
Hi All,

I want to write a sh shell script to read input report and search for a specefic pattern in file and print 3 record above and 2 record below the line in which pattern found.

My file...
2,562
Posted By singhald
can some one help me writing shell script (korn...
can some one help me writing shell script (korn shell or bash shell)
Thanks in Advance
2,562
Posted By singhald
Parsing a variable length file
Hi I am new to shell scripting. I need to parse a file which contains the header and detail records and split into n of file based on dept ID, for ex.
INPUT FILE:

DEPT ID: 1
EMPNAME: XYZ...
2,005
Posted By singhald
i am not providing any file, i wanted to provide...
i am not providing any file, i wanted to provide the comman output only in the single command
2,005
Posted By singhald
how can we perform calculation on the ouput of the commnad
Hello

I am very new to unix scripting.

The below is the ouput of my one command, now i want to use the two below values 611 and 572 from the output of the command . in the ouput i want 39...
Showing results 1 to 15 of 15

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