Search Results

Search: Posts Made By: rahulrathod
1,617
Posted By rahulrathod
$ awk -F, '!/^CISCO/ {c=$1; sub(/"/,""); print;...
$ awk -F, '!/^CISCO/ {c=$1; sub(/"/,""); print; next} {sub(/"/,""); print c","$0} ' infile2
awk: syntax error near line 1
awk: illegal statement near line 1

Excuse my awk knowledge here, but I...
1,617
Posted By rahulrathod
Format data in new lines
Hi All,

I have data in the following format.



Australia,"CISCO877-SEC-K9
CISCO1841-ADSL
CISCO2821"
Australia,"CISCO877-SEC-K9
CISCO1841-ADSL
CISCO2821"
Austria,"CISCO871-K9
CISCO1841...
6,003
Posted By rahulrathod
Apologies. The format is different when I...
Apologies.

The format is different when I view the csv on Windows and Unix.

On windows it appears as I mentioned previously

A,"YAHOO3456-K9YAHOO9876YAHOO67/2YAHOO65432-1"...
6,003
Posted By rahulrathod
Thanks for the script. I did run it, but I got...
Thanks for the script. I did run it, but I got the following output in myFile.csv


A,"YAHOO3456-K9
YAHOO9876
YAHOO67/2
YAHOO65432-1"
B,"YAHOO01
YAHOO07865
YAHOO67-AD987/1
YAHOO67/23"

...
6,003
Posted By rahulrathod
Ok. Lets make it simple. I have got the data into...
Ok. Lets make it simple. I have got the data into a csv file as follows.


A,"YAHOO3456-K9YAHOO9876YAHOO67/2YAHOO65432-1"
B,"YAHOO01YAHOO07865YAHOO67-AD987/1YAHOO67/23"


And what I want as...
6,003
Posted By rahulrathod
Yes. Data in csv, will come like this ...
Yes. Data in csv, will come like this

A,"1234"
B,"1234"

for the spreadsheet.

But what if data is like

A abcd
cdab
B abcd
fedh

I wont be able to distinguish the...
6,003
Posted By rahulrathod
Excel data manipulate
All,

I have the following format of data in a spreadsheet


A 1
2
3
4
B 1
2
3
4


where 'A' is value of 'A1',...
20,091
Posted By rahulrathod
Get IP of FTP Host
All,

This may be very trivial, but I am unaware.

We normally do FTP to hosts with their hostname as follows.

$ ftp c.b.a.com

Now, How do I know the IP address of c.b.a.com?

Thanks,...
3,167
Posted By rahulrathod
I quit bash and opened ksh shell. I provided the...
I quit bash and opened ksh shell. I provided the following command.
Note: Just before I typed q, I typed backspace on my keyboard which gave these characters '^?'

$ ls -lrt ^?q
-rw-rw-rw- 1...
3,167
Posted By rahulrathod
Yes it is a copy of test.txt. It was created...
Yes it is a copy of test.txt.

It was created when I was trying to quit vi when I had the test.txt opened.

The point is what is the name of the file now? How do I perform any operation on this...
3,167
Posted By rahulrathod
File with a weird name 'q'
All,

I have the following listing of files


$ ls -lrt
-rw-rw-rw- 1 user1 group1 335691 Aug 4 17:45 script1.sh
-rw-rw-rw- 1 user1 group1 648 Aug 4 17:45 try,csv...
20,461
Posted By rahulrathod
setenv error
I am having the following environment setup script.

$cat dbenv.sh
#! /bin/csh
#
set history=32
stty sane

setenv ORACLE_HOME=/dboracle/orabase/product/10.1.0.3
set...
4,343
Posted By rahulrathod
Script through cron and command line
I have a script which runs fine through command line, but doesn't run through cron. There are some variables which are set by the .profile file which are used by the script. Is it that cront does not...
8,175
Posted By rahulrathod
Now, I am running the script with its absolute...
Now, I am running the script with its absolute path as follows and the following error is being encountered.

$ /export/home/fastserv/bin/createFASTSRVfile.sh

SQL*Plus: Release 10.1.0.3.0 -...
8,175
Posted By rahulrathod
If I comment the following line, I am able to run...
If I comment the following line, I am able to run the script without a syntax error


#source /export/home/fastserv/bin/dbenv.sh


The file just contains some environment settings as follows
...
8,175
Posted By rahulrathod
Problem with csh script
Hi All,

I have the following script.


#!/bin/csh
#
# createDATfile.sh
#


cd /export/home/fastserv/bin
source /export/home/fastserv/bin/dbenv.sh
echo `date` >>...
4,982
Posted By rahulrathod
Install Oracle on Fedora Linux
I have a Fedora Linux server in my office. I want to install an Oracle 10.1.0 Client on this server. I have root access to this box and I have thee zip file of the Client installation. Can anyone let...
32,886
Posted By rahulrathod
Delete all mails on Solaris
How do I delete all my mails in the mailbox on Solaris?

$mail
? d *
Illegal numeric
?

d * does not work. Also I want to retain the mailbox.

Thanks,
Rahul.
6,969
Posted By rahulrathod
Perl script variable passed to Oracle query
Hi All,

I pass a Perl script variable, whch is passed to a query to be prepared. But the problem is I have special character like '&' in this variable which are handled in a special way by the...
4,167
Posted By rahulrathod
Http_host
How does the HTTP_HOST variable derive its value in a Perl environment variable?

Is it a combination of Servername, Port and Document root mentioned in the httpd.conf entry?

Thanks,
Rahul.
4,880
Posted By rahulrathod
Get Network and Node details
which unix cmd will give the following result...
Node Name Task Name ID Status Network

NUTTS CTP_E 1000 In Service X25/OFF...
7,883
Posted By rahulrathod
Thanks. Could there be some other possible...
Thanks.

Could there be some other possible reasons as well other than the public key string getting modified?
7,883
Posted By rahulrathod
But my question was, if we already have a unique...
But my question was, if we already have a unique public-private key pair, would ne need to generate a new public key on the server?
Maybe, if the key pair has stopped working due to some reason?
...
7,883
Posted By rahulrathod
SSH - Public key
When should one have to generate a public key on a Server when the public key is already created and used by other clients?

Thanks,
Rahul.
1,536
Posted By rahulrathod
For the 1st question...
For the 1st question https://www.unix.com/showthread.php?t=7077

and for the 2nd try the following snippet.


sqlplus -silent ${DBUSER}/${DBPASS}@${ORACLE_SID} << ENDSQL
set feedback off...
Showing results 1 to 25 of 155

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