Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: spacebar
Forum: AIX 05-05-2014
19,018
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-28-2014
850
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...
911
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
4,447
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,509
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
6,019
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
6,019
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
11,827
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
4,993
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,200
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,564
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,395
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.
627
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,047
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...
13,126
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,124
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
217,334
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,006
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,006
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,
6,792
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
7,081
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"
1,759
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
Forum: Solaris 02-22-2013
1,504
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...
10,367
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...
964
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

 

Featured Tech Videos

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