Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Amit.Sagpariya
15,165
Posted By Amit.Sagpariya
I am using sunSolaris.... there no lftp :(
I am using sunSolaris.... there no lftp :(
15,165
Posted By Amit.Sagpariya
Hi Zaxxon, We do not have "expect" utility...
Hi Zaxxon,

We do not have "expect" utility installed on our system... is there any other way?
15,165
Posted By Amit.Sagpariya
password - SFTP
Hi team,

I know if we need to transfer the files between between 2 servser, we use SFTP through key setup between 2 server.

currently There are some problems and we are not able to setup keys...
2,109
Posted By Amit.Sagpariya
awk '/CACCIA/ || /idlck/ {print "OK"} '...
awk '/CACCIA/ || /idlck/ {print "OK"} ' input_file
2,019
Posted By Amit.Sagpariya
Why do not you use "sleep" function. ...
Why do not you use "sleep" function.


dt=date '+%H:%M:%S'

while [ $dt = {your condition} ]
do
sleep 5
dt=date '+%H:%M:%S'
done
1,997
Posted By Amit.Sagpariya
Hi Sudha, But how can i make the entire line...
Hi Sudha,

But how can i make the entire line 80 characters by replacing NULl wityh space?
It is someing like left padding, right padding
1,997
Posted By Amit.Sagpariya
NULL in between, at begining or at end of line - convert to space
How to replace null with space?

I want to make each line with 80 characters. If any line contains only 5 characters and remaining is null, then i want to make it as 80 characrets where 5 is...
3,320
Posted By Amit.Sagpariya
Hi All, I have found some idea to handle...
Hi All,

I have found some idea to handle this situation.

Actually, each lines contains only 80 characters. But as per specification document, 540 characters are of HEADER and then 540...
3,320
Posted By Amit.Sagpariya
Multiple lines into one using PERL or SHELL
Hi All,

I need your help to solve problem using either PERL script or SHELL script.

We are receving a file, in which one record is coming in multiple rows. The main problem is, we are not...
4,538
Posted By Amit.Sagpariya
SFTP issues
Hi All,
To transfer the files, from one server to another through SFTP, i am using below code in my script.

cur_dt=$1
echo "cd /inbox/" >> SFTP.txt # folder of traget server
echo "mput...
10,827
Posted By Amit.Sagpariya
Sorry, initially i forgot to give data length of...
Sorry, initially i forgot to give data length of each column

COL1 VARCHAR2(20)
COL2 VARCHAR2(1)
COL3 VARCHAR2(1)
10,827
Posted By Amit.Sagpariya
Fixed-Width file from Oracle
Hi All,

I have created a script which generates FIXED-WIDTH file by executing Oracle query.


SELECT RPAD(NVL(col1,CHR(9)),20)||NVL(col2,CHR(9))||NVL(col3,CHR(9) FROM XYZ


It generates...
8,663
Posted By Amit.Sagpariya
The problem is it is not producing any error...
The problem is it is not producing any error message.
8,663
Posted By Amit.Sagpariya
scp is not working through sh script
Hi All,

I am generating a ~ delimited file from oracle table and then transfer it to another server through scp.


if [ -f $COM_DIR/ABC.txt ]
then
scp $COM_DIR/ABC.txt...
7,646
Posted By Amit.Sagpariya
AWK - OFS
Hi All,

I have a comma seperated delimited file with 10 columns. I need to convert it into TAB seperated delimited file.

awk -F"," '{print...
1,480
Posted By Amit.Sagpariya
Give the sample data....
Give the sample data....
2,480
Posted By Amit.Sagpariya
Hi Reva, #!/bin/ksh let first_year=`head...
Hi Reva,

#!/bin/ksh
let first_year=`head -1 a.dat | awk '{print $2}'`
cat a.dat | while read abc
do
f_str=`echo $abc | awk '{print $1, $2, $3}'`
b_str=`echo $abc | awk '{print...
1,990
Posted By Amit.Sagpariya
Special Char in Data file
Hi All,

I have a data file in UNIX which i am trying to load into Oracle table using Oracle SQL Loader.

The problem is, one of the filed contains special character (ex: Square). And due to...
3,905
Posted By Amit.Sagpariya
No tell me one thing... from where u will get...
No tell me one thing... from where u will get list of user? Is it in a file or you need to pass dynamically each time...

For each use, do u need to create seperate file like above. If yes, what...
3,905
Posted By Amit.Sagpariya
pass the value as input parameter in shell...
pass the value as input parameter in shell script.

$ ./a.sh onida /dir/onida /tmp/onida_files

#!/bin/sh

CUST=$1
DIR=$2
NULIST=$3
name=philps_123

echo "$CUST"
echo $DIR
echo $NULIST...
3,436
Posted By Amit.Sagpariya
. script.sh Jus give space between dot and...
. script.sh

Jus give space between dot and script name
3,436
Posted By Amit.Sagpariya
Please refere the link [/URL] ----------...
Please refere the link [/URL]

---------- Post updated at 01:06 PM ---------- Previous update was at 01:05 PM ----------
...
1,540
Posted By Amit.Sagpariya
Lets say, you input file name is a.txt, then ...
Lets say, you input file name is a.txt, then

awk '$3!=0 {print }' a.txt
2,360
Posted By Amit.Sagpariya
Check the ind file before FTP data file....
Hi All,
I have posted this issue in the forum, but i did not get any answer. If someone knows about it, could you please let me know hoiw to do it?
i am FTP the file from one server to another. The...
1,711
Posted By Amit.Sagpariya
i thought of doing same, but only after i connect...
i thought of doing same, but only after i connect to Source server using FTP, i can check. In FTP, i cannot use -f option.
Showing results 1 to 25 of 134

 

Featured Tech Videos

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