Search Results

Search: Posts Made By: spacebar
Forum: AIX 05-05-2014
22,887
Posted By spacebar
Check out this info: Get the latest version of...
Check out this info:
Get the latest version of OpenSSH for AIX (http://www.ibm.com/developerworks/systems/articles/openssh_updated.html)
Updating openssl and openssh | linuxpassion2...
Forum: Solaris 04-27-2014
1,127
Posted By spacebar
The xdk servlet should be with your oracle...
The xdk servlet should be with your oracle installation, check out the below section at this link: Getting Started with XDK for Java and JavaBeans...
1,135
Posted By spacebar
Insert line after every 7th line: sed -n...
Insert line after every 7th line:
sed -n 'p;n;p;n;p;n;p;n;p;n;p;n;p;i\inserted line' file_1 >file_2
Forum: Programming 02-23-2014
5,490
Posted By spacebar
Since mySql doesn't allow "update or insert"...
Since mySql doesn't allow "update or insert" syntax you will need to create a 'before insert' and a 'before update' trigger.

Example code:
create trigger before_insert_concat before insert on...
1,947
Posted By spacebar
If I understand what you are trying to do this is...
If I understand what you are trying to do this is another way:
IFS=","
myvars="hello,cat dog walk,money,elephat"
for v in $myvars
do
echo $v
done
9,337
Posted By spacebar
You seem to have it: for f in $SRC/* do ...
You seem to have it:
for f in $SRC/*
do
grep -q $f $MD5
if [[ $? -ne 0 ]]; then
cp $SRC/$f $DST
md5sum $f >> $MD5
fi
done
9,337
Posted By spacebar
You can check if the file name is in your 'md5'...
You can check if the file name is in your 'md5' file and if not copy it:
for f in $SRC/*
do
grep -q $f md5_files.txt
if [[ $? -ne 0 ]]; then
cp $SRC/$f $DST
fi
done
14,675
Posted By spacebar
As you would any other variable assignment: my...
As you would any other variable assignment:
my $directory_path = "/path/to/file";or
my $directory_path = '/path/to/file';
Forum: Programming 07-27-2013
5,907
Posted By spacebar
This is a simple example of separating them out...
This is a simple example of separating them out to separate files:
#!/usr/bin/perl -w
# Script: get_certs.pl

use strict;
use warnings;

my @a;
my $fh;
my $i;
my $p;
my $fn;

sub...
1,654
Posted By spacebar
These are are a couple of examples: $ cat t ...
These are are a couple of examples:
$ cat t
BIND dn="uid=

** Perl example
$ perl -ne '/BIND dn=\"uid=/ && print' t
BIND dn="uid=

** sed example
$ sed -n '/BIND dn\="uid\=/p' t
BIND...
Forum: Ubuntu 06-01-2013
1,742
Posted By spacebar
Do you have a SSHD server or FTP Daemon running...
Do you have a SSHD server or FTP Daemon running on this host?
You could test with these commands to see if you get a connection to this host:

scp user@192.168.1.5
sftp user@192.168.1.5
ftp...
Forum: Solaris 05-21-2013
2,729
Posted By spacebar
Not sure if I understand, But if you just want to...
Not sure if I understand, But if you just want to copy file(s), why not just use the scp or rsync.
1,042
Posted By spacebar
This doesn't validate if you actually have an...
This doesn't validate if you actually have an element in the 3rd position from the end, One example:
$ declare -a array=( 1 2 3 4 5 6)
$ c=${#arrray[@]}; e=$c-3; echo ${array[$e]}
4
1,243
Posted By spacebar
I believe this will find all the <a> tags for...
I believe this will find all the <a> tags for you:
Match the characters "<a"
Match any single character that is not a line break character
Quantifiers must be preceded by a token that can be...
19,315
Posted By spacebar
Here are some examples of using 'dd' to...
Here are some examples of using 'dd' to accomplish what you are asking:
# dd outputs 1st 5 bytes of file to screen with diagnostic info
dd if=input_file bs=1 count=5
# dd outputs 1st 5 bytes of...
1,342
Posted By spacebar
Not sure what you mean without seeing actual...
Not sure what you mean without seeing actual example because the '*' just tells oracle to return all columns, but try it like this:
param=

load_data_to_oracle ()
{...
Forum: UNIX and Linux Applications 03-29-2013
228,147
Posted By spacebar
Check out the info on these links: General ::...
Check out the info on these links:
General :: How To Sftp Using A SOCKS V5 Proxy (http://linux.bigresource.com/General-how-to-sftp-using-a-SOCKS-v5-proxy-287rigjxz.html)
how to sftp using a SOCKS...
2,325
Posted By spacebar
How about this: $ array=(1 2 3 4 5 6 7 8 9 10) ...
How about this:
$ array=(1 2 3 4 5 6 7 8 9 10)

$ printf -v var "%s," "${array[@]}"

$ echo "${var%?}"
1,2,3,4,5,6,7,8,9,10
2,325
Posted By spacebar
How about something like this: $ array=(1 2 3 4...
How about something like this:
$ array=(1 2 3 4 5 6 7 8 9 10)

$ printf "%s," "${array[@]}"
1,2,3,4,5,6,7,8,9,10,
7,758
Posted By spacebar
Use a '#' sign for sed delimiter instead of a...
Use a '#' sign for sed delimiter instead of a '/':
echo RUNDATE | sed "s#RUNDATE#$NOW#g"
9,701
Posted By spacebar
You can 'print' your output found to a file, for...
You can 'print' your output found to a file, for example:
awk '/Sl.*thickness/ {Sl=$3;Tt=$NF}END{print FILENAME ":" Sl, Tt >> "data.out"}' DILAT.DAT
Forum: Solaris 02-22-2013
1,820
Posted By spacebar
The ls -l is showing you the information about...
The ls -l is showing you the information about the contents of the directory, ls -ld shows you information about the directory itself.
Play around with it on some other directories that have...
3,095
Posted By spacebar
This is one way to do it: $...
This is one way to do it:
$ FILEN="MYFILE_NAME_20130221000026.CSV"

$ datetime=$(echo $FILEN | tr -cd '[[:digit:]]')

$ echo $datetime
20130221000026
11,865
Posted By spacebar
Take a look at the info on these links: Perl -...
Take a look at the info on these links:
Perl - Printing duplicates in a hash (http://www.tek-tips.com/viewthread.cfm?qid=1363591)
How do I find and count duplicate values in a perl hash - Stack...
1,105
Posted By spacebar
'-d' '--no-dereference' Copy symbolic...
'-d'
'--no-dereference'
Copy symbolic links as symbolic links rather than copying the files that they point to, and preserve hard links between source files in the copies.
Showing results 1 to 25 of 70

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