Search Results

Search: Posts Made By: JayDoshi
1,727
Posted By JayDoshi
I want to assign columns in first row of a csv...
I want to assign columns in first row of a csv file into dynamic variables in KSH.

---------- Post updated at 10:38 PM ---------- Previous update was at 10:31 PM ----------

example if first row...
1,909
Posted By JayDoshi
Can you please check file transfer mode in your...
Can you please check file transfer mode in your FTP tool, I am sure it will be binary mode which you need to change to text format to avoid this ^M.
1,727
Posted By JayDoshi
I have changed code as per your suggession...
I have changed code as per your suggession however i am getting following error.

$ ./test.ksh Filename
./test.ksh[12]: read: bad option(s)
Columns are 0

OLD:
in_par_number=`head -n1...
1,727
Posted By JayDoshi
Dynamic variable assignment
#!/bin/sh

if [ $# -ne 1 ]
then
echo "Insufficient number of arguments ">> error".log" ;
echo "Please check error log for more details";
exit 1 ;
else
file_name=$1".csv";
fi ;
...
839
Posted By JayDoshi
Verification of file name with table column
I am trying to generate code
1. move entire list of file names with specific pattern(standard patterned name for example file name is <process>_<country>_<yymmdd>) in a directory to a variable
2....
1,088
Posted By JayDoshi
How to use awk command(file) with file command?
how can i call awk file "average.awk" (code as follows) with file commands like ls -s...
#!/bin/awk -f
BEGIN {
# How many lines
lines=0;
total=0;
}
{
# this code is executed once for...
2,110
Posted By JayDoshi
output will be like as below. As there are ...
output will be like as below.
As there are duplicate rows in a file, it will give me grepped result as below.
I want only one line instead.


343085,343085

Error 110132 in debt instrument...
36,620
Posted By JayDoshi
How to connect to DB2 using UNIX
I am new to Putty, Unix and DB2 and this is what I am working on right now.
I installed Putty
I got access to username / pwd
I got Unix usrname/Pwd.also got the home directory

once I login into...
2,110
Posted By JayDoshi
If grepped setence is the duplicate, is there any...
If grepped setence is the duplicate, is there any way to remove it?
I have verified for above output it will give desired output for multiple IDs but with \n seperator, shall i able to change it to...
2,110
Posted By JayDoshi
Thank you all. It worked.. As i am learner of...
Thank you all.
It worked..
As i am learner of UNIX, Could you please explain code.

One more question,
If same error come more than one time for different ID numbers,than?/?
In other words...
3,561
Posted By JayDoshi
How to assign value from isql to UNIX variable
I want output to be assigned to UNIX variables

echo "Enter RRS ID: "
read rrs
isql -SPROD_DDS -USYBUSER -PSYBPASS -b -osfg.out << EOF
use sip
go
set nocount on
select issuerId,...
2,110
Posted By JayDoshi
How to get a number from a grepped sentence of a file?
I want get a number(ID) from a sentence which has been grepped from file using error number.

For Example:
#!/bin/ksh
echo "Enter RRS ID: "
read rrs
echo "Enter error number:"
read err
scp...
Showing results 1 to 12 of 12

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