Search Results

Search: Posts Made By: kiranparsha
1,473
Posted By kiranparsha
Concat data
All,

I have 2 files A and B with some data. Now i want to concat data from both the files in to 3rd file.Please help me with a single command line.


A--123456789
B--jlsjdfkajsjas
output...
1,466
Posted By kiranparsha
Thanks Rudic . Its working fine.
Thanks Rudic . Its working fine.
1,466
Posted By kiranparsha
I am looking the below output. Also I am using...
I am looking the below output. Also I am using the below unix version
bash-4.1$ uname -a
Linux ad2222aa 2.6.32-504.8.1.el6.x86_64 #1 SMP Fri Dec 19 12:09:25 EST 2014 x86_64 x86_64 x86_64 GNU/Linux...
1,466
Posted By kiranparsha
Read space in script
Hi All,

Please let me know how to read space between 2 words in script. It is reading only first chars ES,NZ. But after space it is not reading next 3 chars.


ES LPI
NZ GBL
FR LPI...
1,981
Posted By kiranparsha
Thanks got it...
Thanks got it...
1,981
Posted By kiranparsha
Yes found the issue with case sensitivity....
Yes found the issue with case sensitivity. 18OCT2015

I am using the code to get the date month and year TS=`date +%d%b%Y | tr '[a-z]' '[A-Z]' `
Can you please help me how to get data as...
1,981
Posted By kiranparsha
From command prompt it is working fine, but from...
From command prompt it is working fine, but from script it is throwing error as /datafile_18OCT2015_* not found.sftp> pwdRemote working directory: /sftp> ls
1,981
Posted By kiranparsha
SFTP from remote server
Hi All,While sftp from remote server an error (/) is coming before the file in a script.Please find the below log. The file is on home directory on remote server.[sftp> get datafile_18OCT2015_*...
4,444
Posted By kiranparsha
my file is in the format aaa.txt.yyyymmdd ...
my file is in the format

aaa.txt.yyyymmdd
aaa.txt.yyyymmdd

Please let me know the command or script how to get last month files and if it is new year how to get last year dec files.
4,444
Posted By kiranparsha
Get last month files
Hi All,

How to get last month files. Ex : 1st Jan i have to get Dec 31 days files and on Feb 1st i have to get Jan 31 days files and on Mar 1st i have to get Feb 28 days files. Below are the...
5,958
Posted By kiranparsha
Bold letter in email body
Hi All,
The below is the email text and i want few words in BOLD.
I am writing the below message in to a .txt file and calling it in a function which generated email. when i run at cmd prompt it...
3,517
Posted By kiranparsha
function notify_users_Weekly { subject=$1 ...
function notify_users_Weekly
{
subject=$1
contents=$2
address=$3
CCaddress=$4

mailx -s """$subject""" """$address""" -c """$CCaddress"""< $contents >> RC=$?
return $RC
}
3,517
Posted By kiranparsha
I am using the below function and parameters ...
I am using the below function and parameters
Here $c is TO address and $d is CC. But whenever ther is null in $c it is taking $d as in TO address.
My requirement is if there is null in $c then...
3,517
Posted By kiranparsha
UNIX mail blank in the TO address
Hi All,

Can we send a mail in unix blank in TO address with CC and BCC.
TO address should be blank
CC should not be blank
BCC should not be blank

thanks,
1,158
Posted By kiranparsha
Hi Robin, Thanks for your reply. I found...
Hi Robin,

Thanks for your reply. I found the issue with adding +1 to a variable.


if [ $M == 12 ] ; then
M=01
Y=`expr $Y + 1`
else
M=`expr $M + 1`
1,158
Posted By kiranparsha
Problem with adding date
Hi All,
Please let me know the error in the below code.
m=(0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)
M=$(date +%m)
Y=$(date +%Y)
if [ $M == 12 ] ; then
M=01
Y=$(($Y+1))
else
...
2,484
Posted By kiranparsha
Convert month(06) to String(Jun)
Hi All,

From the below code i can see the value in M=05 and +1 added i.e 6.
i am calling those 2 variables and the output is giving as 01-6-2013. But the required output should be 01-Jun-2013....
1,326
Posted By kiranparsha
Hi , i executed now using the below code ,...
Hi ,

i executed now using the below code , but it took last week files 16,17,20,21.It should take only 20 and 21st. Please let me know if this code works only on fridays.
ssh tr_ap@apalyn...
1,326
Posted By kiranparsha
How to pick only current week files?
Hi,

My job will run every friday and it should pick only that week files.
For Ex: this 24th May job will trigger and it should pick 20,21,22,23,24.and 19th sun and 18th sat we dont have files...
1,321
Posted By kiranparsha
Group the records based on empno and send mail
Hi All,

I have records in a file with name,SSO,openitems,manageremail with | delimited file.Now i want to group the records by SSO and openitems and send email to their manageremail....
1,242
Posted By kiranparsha
Check the exact month and date
Hi All,

Please help me in the below code.

awk -v pattern="$_month$Day" 'BEGIN {FS = "." }; {if ($3~pattern) {print $0}}' ${BASE_DLY_UOGL_WORK_DIR}/Avail_ApprovedReports.txt >...
4,345
Posted By kiranparsha
Thanks Ranga.... your command working fine and i...
Thanks Ranga.... your command working fine and i redirected to new file.
awk -v ORS='' '{l=substr($0,0,1126);r=substr($0,1172,length($0));print l;printf("%-45s",substr($0,1678,4));print r,"\n";}'...
4,345
Posted By kiranparsha
Copy a column to another column in UNIX fixedwidth file
Hi All,

I have a fixedwidth file of length 3000. Now i want to copy a column of 4 chars i.e( length 1678-1681) to column 1127 – 1171 to the same file.
Please let me know how can i achive using...
Showing results 1 to 23 of 23

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