Search Results

Search: Posts Made By: nani1984
2,682
Posted By nani1984
I didnt get tha above code, i have some...
I didnt get tha above code, i have some questions.
for files in ${pth}/*;
what is the files in the above code, it is not reading anything.

2. if [ $# -ne 2 ]; then
echo "Usage: ${0##*/}...
2,682
Posted By nani1984
Sorry for not mentioning, AUTO_F1_20140610.TXT...
Sorry for not mentioning,
AUTO_F1_20140610.TXT -- this file , i received on 06/10/2014---June/10/2014
LA_AUTO_06112014.TXT -- this file , i received on 06/11/2014---June/11/2014
so i received the...
2,682
Posted By nani1984
Hi Robin, i need to run this process every...
Hi Robin,

i need to run this process every last day of the month and i need to move all the files which i received on after 10th of that month to the different folder, here i am considering the...
2,682
Posted By nani1984
Need last month files after 10th of every month
Hi,
I need all file names in a folder which has date >= 10th of last month,

Example
: files in folder
AUTO_F1_20140610.TXT
BUTO_F1_20140616.TXT
CUTO_F1_20140603.TXT
FA_AUTO_06012014.TXT...
1,397
Posted By nani1984
Attachment in email
I have a file in unix, while i do email that file to some one from unix, the attachment file data is displaying in the email. (as body of the email).

but if the file has some special characters ,...
3,123
Posted By nani1984
Multiple files to load into different tables
multiple files to load into different tables,


I have a script show below, but this script loads data from txt file into a table,
but i have multiple input...
1,765
Posted By nani1984
Multiple files to load into different tables,
multiple files to load into different tables,


I have a script show below, but this script loads data from txt file into a table,
but i have multiple input...
1,748
Posted By nani1984
Explain awk
I have 2 files

recevied
abc
def
ghi

totallist
abc 123 jasdhfaj
def 345 fjdgkfsfh
ghi 567 dfjdhdhfj
jkl 678 djkahfdjshdf
xyz 984 jdfdhfhdh


myOutputFile
jkl 678 djkahfdjshdf
xyz...
1,257
Posted By nani1984
recevied abc def ghi totallist abc...
recevied
abc
def
ghi

totallist
abc 123 jasdhfaj
def 345 fjdgkfsfh
ghi 567 dfjdhdhfj
jkl 678 djkahfdjshdf
xyz 984 jdfdhfhdh


myOutputFile
jkl 678 djkahfdjshdf
xyz 984 jdfdhfhdh

I...
1,257
Posted By nani1984
vgersh99 THanks A Lot , Its worked.
vgersh99 THanks A Lot , Its worked.
1,257
Posted By nani1984
iam new to unix in which file is it writing the...
iam new to unix
in which file is it writing the results, can you please explain,
1,257
Posted By nani1984
Difference between 2 files, one with 1 column and 2nd file with multiple columns
Hi,
I need to find the difference between 2 files in unix and write the result in the new file

File1:
A
B

File2:
X 123 hajkd
Y 345 adjfka
A 123 djafjhd
B 678 dsndjks

Output...
Forum: Programming 03-27-2014
7,888
Posted By nani1984
Find first 5 characters in the file name
Hi,
I have some files in a folder.
I need to find first 5 characters in the file name of every file and write those into a file.

Example:
ABC126_ACCPT.txt
AYA127_ACCPT.txt

Output in the...
1,495
Posted By nani1984
SQL output to UNIX variable
I have a sql statement , i need to assign to a variable in Unix

sel count(*) AS num_files from TABLE_A;

i need to use "num_files" in unix statements. let me know how to assign unix variable to...
7,225
Posted By nani1984
I used this below alias datecalc=./datecalc ...
I used this below

alias datecalc=./datecalc


year=$1
month=$2
day=$3
if [[ $(datecalc -D $year $month $day) = "Tuesday" ]] ; then

echo today is Tuesday

...
7,225
Posted By nani1984
Hi Perderabo, I ran the above script, the log...
Hi Perderabo,
I ran the above script, the log says as below, it doesnt find ./datecalc, this is perl server

Alternate_Friday.ksh[7]: ./datecalc: not found
today is not Tuesday
7,225
Posted By nani1984
Alternate Monday
If i want to run on Friday's, i have to put Friday there rght,
I need to run the scripts on alterante fridays not on EVEN or ODD Fridays..
For eaxmple, for Jan , I have to run the script on 1/3,...
7,225
Posted By nani1984
Alternate mondays to run the script
I need to run a script every other monday (alternate mondays) , Can anyone has logic to put into timer script.

We are using below logic to run scripts every day
daywk_is=$(date "+%u")

if [[...
1,376
Posted By nani1984
YUp it works.. Thanks a lot
YUp it works..
Thanks a lot
1,376
Posted By nani1984
Conflict with the operator in IF
I am using a script like this

source=$1

if [ "$source" == "bof.tmp_rst_tb" ] ;
then
echo "got it"
else
echo "lost it"
fi



But the script is giving th error like...
7,768
Posted By nani1984
why file automatically deleting in ftp server
Iam putting file in ftp server.
iam doing ftp
to transfer a file to ftp server
but after sometime(10 sec) the file is automatically deleting in the ftp.
Can i know why this happens.

When my...
2,498
Posted By nani1984
changing the permissions
HI,
I wann give permissions to a folder which contains multiple folders.....

how can i give permissions to all folder at a time
tat means if i give permissions to main folder it
the same...
21,472
Posted By nani1984
BOFA_PWD is like variable export...
BOFA_PWD is like variable
export BOFA_PWD=`ftppwd KRNSS PTP`;
bteq << EOF
.logon KRNSS/PTP,$BOFA_PWD;

in the above.... KRNSS is hostname..... PTP is username
and
.logon is teradata command ...
21,472
Posted By nani1984
i think by using PWD=`ftppwd hostname...
i think by using
PWD=`ftppwd hostname username`;

i dont know how to use or declare the password in it
or encrypt in it
21,472
Posted By nani1984
Encrypting the password
Iam using the teradata...
and running the scripts in unix,
I wan to encrypt the teradata password in Unix...

my hostname is : bprod
usename: KRN777
passwrd: passwrd

can ant one tell me...
Showing results 1 to 25 of 44

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