Search Results

Search: Posts Made By: n1djs
51,581
Posted By n1djs
Removing ^M's from a file with VI
Inside VI type this
:s/^V^M//g

Where ^V = the control key and the V key pressed together
and ^M = the control key and the M key pressed together
16,948
Posted By n1djs
7,241
Posted By n1djs
The directory permission where the file is...
The directory permission where the file is located contains the permissions permitting if files in the directory can be deleted or not. The permissions of the file direct who can read the file, not...
7,747
Posted By n1djs
sed -e 's/\,/^M/g' filename >newfilename
sed -e 's/\,/^M/g' filename >newfilename
1,885
Posted By n1djs
Free unix
Home at OpenSolaris.org (http://www.opensolaris.org)

On that page, click on download.
9,472
Posted By n1djs
Start autoexpect, and then manually do what you...
Start autoexpect, and then manually do what you want to do.
This will create a script automatically that you can tune and trim to your hearts desire. AUtoexpect comes with the expect package.
Forum: Solaris 02-14-2008
4,213
Posted By n1djs
Go to: Patch Check Advanced...
Go to: Patch Check Advanced (http://www.par.univie.ac.at/solaris/pca)
download and install pca on both boxes.
Run "pca -i" within a few minutes of each other on both boxes and the end result will...
27,357
Posted By n1djs
Re: store the sql query's output in a variable
#!/bin/ksh
result=$(echo 'SELECT * FROM TABLE' | mysql DB)
4,616
Posted By n1djs
One example of many ways to read config data
Example contents of a config file name my.config
_____________________________
Some config data
_____________________________

In program that needs config file info
___________________...
Forum: Solaris 01-16-2008
25,080
Posted By n1djs
Most implementations telnet doesn't read from...
Most implementations telnet doesn't read from stdin. Also the way you have the code written, the file will be created on the system you are telneting to, not the one you are telneting from.
...
7,677
Posted By n1djs
use basename
I assume this is a unix box...
awk is a nuclear bomb, when all you need is a hammer.

Use basename (see example below)

#!/bin/ksh
for i in *.ixf; do
name=$(basename $i .ixf)
echo $name
...
Forum: Programming 11-15-2007
5,459
Posted By n1djs
A SEGV by definition mean, you are trying to...
A SEGV by definition mean, you are trying to write to a segment outside of memory allocated to you. In the first case, you had no storage allocated, only pointers, so the first write gave you the...
Forum: Programming 11-14-2007
5,459
Posted By n1djs
Wierd C program. Help Needed
You have a problem in both cases. One is being caught, the other is not.
"char *i, j[15], *k" says the following:
Point to memory and call that pointer i;
Create space in memory to hold 15...
Showing results 1 to 13 of 13

 

Featured Tech Videos

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