Search Results

Search: Posts Made By: avikaljain
3,137
Posted By avikaljain
Needs help in parsing comma separated values
hello experts,

i am retrieving values in variables jobKey and jobName within my shell script. these values are returned to me within braces [ ] and i am using following command to remove those...
6,861
Posted By avikaljain
Hi, I tried the way mentioned above and removed...
Hi, I tried the way mentioned above and removed exit command from the script, it still gives comes with exit code 0 and the execution processes further:

ssh -i /opt/apps/lib/keys/nfs_appsadm_key...
29,661
Posted By avikaljain
Thank you to both of you hanson44 and Yoda, I...
Thank you to both of you hanson44 and Yoda, I used both the utilities in my script and they are working absolutely file. Thank you again.
6,861
Posted By avikaljain
Catching exception of commands executed under ssh and su
Hello experts,

I have one wrapper script which runs on server104, the purpose of the script is to ssh on server109; perform su to application user; and execute exports script.

I want wrapper...
29,661
Posted By avikaljain
Check to identify duplicate values at first column in csv file
Hello experts,

I have a requirement where I have to implement two checks on a csv file:

1. Check to see if the value in first column is duplicate, if any value is duplicate script should exit....
1,913
Posted By avikaljain
Hi Chubler_XL, I do not think the grep command is...
Hi Chubler_XL, I do not think the grep command is the issue here, I replaced the grep command with just echo $HOST_NAME and I still get the same error message:

The code:


cut -f1 -d","...
1,913
Posted By avikaljain
Hi, I am facing an issue now with my...
Hi,

I am facing an issue now with my script where I am using this routine, while running it gives me following error:
/mpp/t24_delivery/RCM/menu/packlist.dat: line too long.

Any idea what...
1,913
Posted By avikaljain
Thanks Chubler_XL, this is exactly what I was...
Thanks Chubler_XL, this is exactly what I was looking for.
1,913
Posted By avikaljain
Need help in writing a routine for sorting a CSV file
Hi,

I have a CSV file in following manner:

server1,env1,patch1
server1,env1,patch2
server1,env1,patch3
server1,env2,patch1
server1,env2,patch3
server2,env3,patch1
server2,env3,patch5...
3,013
Posted By avikaljain
thanks!!!!! here's my sript: ...
thanks!!!!!

here's my sript:

#!/bin/bash
INPUT=/tmp/patch_list.txt
( IFS=,
while read PATCHES
do
for i in $PATCHES
do
echo $PATCHES
done
done
) < $INPUT

...
3,013
Posted By avikaljain
parsing comma separated file
Hi,

I have a file with th elist of patches separated by comma, like below:
patch1, patch 2, patch 3................

t\The number of patches is not known as it changes every time.

I need...
Showing results 1 to 11 of 11

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