Search Results

Search: Posts Made By: rajrishi990
974
Posted By rajrishi990
that is not the case. if my file had ^M in all...
that is not the case.
if my file had ^M in all csv files, i culd see that in UNIX when i use vi command but that is not the case.

The file data i gave earlier does not have any ^M characters.
I...
974
Posted By rajrishi990
HI, My file data is as below:- ...
HI, My file data is as below:-
ID,Status,parentid,status_new,Locations,date
4373,Complete,41,Active,,
4374,Complete,41,Active,,
435,Complete,41,Active,,


when i use the command that i...
974
Posted By rajrishi990
sed 's/'"$(printf '\015')"'/\ /g' $1 > $2 ...
sed 's/'"$(printf '\015')"'/\
/g' $1 > $2

I am using above sed command.

The above command is changing the file which does not have ^M and putting a blank entry in between rows for all dat...
974
Posted By rajrishi990
Need help in scripting
Hi,

I am trying to find a script that will help me in replacing ^M if present in file with new line if new line is not present after ^M else leave the file as it is.

Can someone help me with...
727
Posted By rajrishi990
Need help in script
While trying to run below script, the script is going in loop everytime it runs.
This script is basically if the first curl command generates files cookies.txt and its size is more that 215v , it...
694
Posted By rajrishi990
thanks, it is generating the desired result in...
thanks,
it is generating the desired result in file.
Though there is one issue.
output shown in file is like:
more out.txt

ajay




there are blank spaces which should not be there
...
694
Posted By rajrishi990
the thing is when i do like you said it gives...
the thing is when i do like you said it gives output like
name
--------
ajay



i want the output file to have only ajay

Please use CODE tags as required by forum rules!
694
Posted By rajrishi990
Need help in script
I am trying to write shell script that will pull output from sql db and store it in file in UNIX.
script:-
#echo $conn
sqlplus -l $conn << EOF
select name from employee where id = $1;
/
exit...
1,325
Posted By rajrishi990
In 1.ksh I am trying to substitute value...
In 1.ksh I am trying to substitute value https://www.infa-u.com in place of /home/code/2.ksh
1,325
Posted By rajrishi990
HOw to call shell script within another shell script?
Hi I am trying to call shell script within other shell script but gettting error: -
script 1.ksh is calling 2.ksh:-
1.ksh contains below code:-
#!/bin/bash
curl -k -c /home/code/cookies.txt ...
1,326
Posted By rajrishi990
#!/bin/ksh for (( i=1; i<=3; i++ )) do if [...
#!/bin/ksh
for (( i=1; i<=3; i++ ))
do
if [ ! -s "$1" ]
then
cd /local/test;
curl -k -c /local/test/dummy.txt -d "https://ww.ggole.com/getToken"
fi
done


---------- Post updated at 03:22...
1,326
Posted By rajrishi990
modified script:- #!/bin/ksh for (( i=1;...
modified script:-
#!/bin/ksh
for (( i=1; i<=3; i++ ))
do
if [ ! -s "$1" ]
then
cd /local/test;
curl -k -c /local/test/dummy.txt -d "https://ww.ggole.com/getToken"
fi
done

the ebove one...
1,326
Posted By rajrishi990
i wrote something like this for i in 1..5 ...
i wrote something like this

for i in 1..5
do
if [ ! -s "$1" ]
then
ksh tokesn.ksh
fi
done

if file is not there, it will run ksh tokesn.ksh and loop in 5 times but i want to add like evne...
1,326
Posted By rajrishi990
Need help in script
Hi,
I am trying to write a script to check for file existence but not able to figure out how to write it.
Scenario is :-
i have a script that runs a API command and save a file with name dummy.txt...
1,478
Posted By rajrishi990
Issue with script
Hi,

I am running below script using autosys.
Though the script is running fine, it fails the workflow but the autosys job shows success.
Can you please let me know where can i make change to...
Showing results 1 to 15 of 15

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