Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: gacanepa
981
Posted By bakunin
Yes: works as designed. ;-) The join-command...
Yes: works as designed. ;-)

The join-command follows your orders to include non-matched lines (the "-a") and therefore you see these lines in the output. Depending on what exactly you want leave...
981
Posted By Scrutinizer
A standard way to solve this (you will find many...
A standard way to solve this (you will find many examples on these forums) is this awk construct, so give that a try:
awk 'NR==FNR{A[$1]=$2; next} $1 in A{$2=A[$1]}1' FS=, OFS=, test2 test1
5,041
Posted By Scott
expr does as the man page...
expr does as the man page (https://www.unix.com/man-page/opensolaris/1/expr/) suggests. It evaluates an expression.


$ n=22
$ n=$( expr $n + 1)
$ echo $n
23


$(...) (known as "command...
6,653
Posted By durden_tyler
Looks like you've hit a limitation of SQL*Plus....
Looks like you've hit a limitation of SQL*Plus. The documentation of SQL*Plus shipped with Oracle 11g R2 at this link:

SQL*Plus Limits...
6,653
Posted By rbatte1
You may be better to load the values into a...
You may be better to load the values into a temporary table and then use that in you query like this:-....
WHERE myfield in (SELECT * from temp_table)
....Even so, if you are hitting an Oracle...
6,653
Posted By Yoda
You could do something like this: args="$( cat...
You could do something like this:
args="$( cat aux.txt )"
sqlplus -s user/pass@inst << EOF
select myfield1 from mytable
where myfield2 IN ( $args );
exit
EOF
1,230
Posted By CarloM
There might be a SET...
There might be a SET (http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12040.htm) option for it.

EDIT:
Try
SET ECHO OFF
SET VERIFY OFF
SET FEEDBACK OFF
SET PAGESIZE 0
1,230
Posted By bartus11
Try:awk 'NR>2{a+=$1;b+=$2}END{print a"\t"b}'...
Try:awk 'NR>2{a+=$1;b+=$2}END{print a"\t"b}' file
3,031
Posted By sea
If the users are supposed to login localy, you...
If the users are supposed to login localy, you could try (as root):
cat /etc/passwd|sed s,:,\ ,g|awk '{print $3" "$1}'|sort -r > var

while read line;do
uid=$(echo $line|awk '{print $1}')
...
1,518
Posted By Don Cragun
Hi sidpatil, I believe gacanepa already...
Hi sidpatil,
I believe gacanepa already explained how the paste command portion of the AND list:
cp file1 tmp.$$ && paste -d " " tmp.$$ /dev/null file2 > file1 && rm tmp.$$works.

If I had known...
2,190
Posted By Don Cragun
You have three output fields, but seem to only...
You have three output fields, but seem to only have two column headings. Please show us the input you're trying to process and explain (in English) what it is that you're trying to get out of it.
...
Forum: Linux 09-20-2013
2,725
Posted By LinuxGeek44
I used to be an Ubuntu guy, have heard great...
I used to be an Ubuntu guy, have heard great things about Mint, but I prefer Debian. No great reason, other than it just seems the most intuitive to me. You might as well just jump into one and go...
2,097
Posted By vbe
I get the point of the thread owner..., what I...
I get the point of the thread owner..., what I dont understand is since he knows who are allowed ( IP list...) why not test if you are allowed to download?
5,795
Posted By Don Cragun
I'm glad you were able to get your script...
I'm glad you were able to get your script working.

About 12 minutes after you posted the first message in this thread, you changed the thread's Title from Making a script to copy files not seen...
734
Posted By Don Cragun
This shouldn't make any difference at all. ...
This shouldn't make any difference at all.

If you are calling a shell script to set PERL, anything you do to PERL in that script will be lost when that script returns to your shell. You need to...
14,052
Posted By rbatte1
If you are after the server as a whole, then have...
If you are after the server as a whole, then have a look at the manual pages for vmstat and sar as you may be trying to engineer something for which there is already a solution. You also don't want...
915
Posted By Just Ice
format for /etc/sudoers file ... who where =...
format for /etc/sudoers file ...
who where = (as_whom) what
the sample below will allow jack to only run /dir/command only on host17 only as user jill ... see man sudoers for more info ...
jack...
803
Posted By jim mcnamara
. means runs as the same process - no . means run...
. means runs as the same process - no . means run in child process. Any variable change that occurs in a child does not show up in the parent.
7,331
Posted By in2nix4life
I outlined the method I use for some coworkers...
I outlined the method I use for some coworkers recently. Hope this helps.


1. Download the ISO for a Linux Distro called FINNIX (http://www.finnix.org/). I recommend downloading version 107,...
Forum: What is on Your Mind? 07-29-2013
2,109
Posted By newbie2010
This forum is so good it's beyond belief!
This forum has been so instrumental in my learning scripting and unix commands that I seriously can't believe it and have been advertising it to everyone I know. I started from almost zero knowledge...
1,646
Posted By Don Cragun
Corona688 and gacanepa both missed a key point...
Corona688 and gacanepa both missed a key point here. Unless they know that Yugendra's $PATH setting includes /usr/xpg4/bin or /usr/xpg6/bin before /bin and /usr/bin, they should explicitly use...
2,175
Posted By bartus11
Try:for i in *; do mv $i `echo $i | sed...
Try:for i in *; do mv $i `echo $i | sed 's/GO.STOPE//;s/$/.bin/'; done
761
Posted By vidyadhar85
are you using bash? if yes below can be...
are you using bash?

if yes below can be used

${parameter^} # Convert the first character in ${parameter} to uppercase
${parameter^^} # Convert all characters in ${parameter} to...
Forum: Red Hat 07-05-2013
2,627
Posted By Peasant
I belive you will need to patch... Red Hat...
I belive you will need to patch...
Red Hat Customer Portal (http://rhn.redhat.com/errata/RHBA-2010-0224.html)

What is the output of

rpm -qa tar

If it's lower version then specified in the...
Showing results 1 to 24 of 24

 

Featured Tech Videos

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