Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: radoulov
27,425
Posted By radoulov
... and zsh.
... and zsh.
46,310
Posted By radoulov
Using fold: fold -b70 input
Using fold:

fold -b70 input
4,508
Posted By radoulov
You should modify the current IFS in order to...
You should modify the current IFS in order to achieve that.
Something like:

while IFS= read -r ...Notice that some read implementations do not support the -r option.
82,286
Posted By radoulov
With AWK you'll need something like this: ...
With AWK you'll need something like this:

awk '{gsub("hello", "bye")}1' test.dat > test.dat_tmp &&
mv test.dat_tmp test.dator this (not recommended):

{ rm test.dat &&
awk...
Forum: Solaris 07-13-2009
7,750
Posted By radoulov
Try to change: expect "password:" ...
Try to change:

expect "password:" to

expect "Password:"
7,880
Posted By radoulov
Try: LC_ALL=C tree
Try:
LC_ALL=C tree
831
Posted By radoulov
Following up on MadeInGermany's more standard sed...
Following up on MadeInGermany's more standard sed solution,
I suppose the OP needs something like this:
sed '/^dns\.com$/ {N;N;d;}' /tmp/temp.txt
831
Posted By radoulov
Try: sed '/^dns\.com$/,+2d' /tmp/temp.txt
Try:
sed '/^dns\.com$/,+2d' /tmp/temp.txt
2,668
Posted By radoulov
Save the current Internal Field Separator in...
Save the current Internal Field Separator in oIFS, set it temporarily to '/' so the shell can split the string, restore ASAP the standard value.
For more information:

man sh|less -pIFS
3,126
Posted By radoulov
Either use a VM with Linux and ask here or, if...
Either use a VM with Linux and ask here or, if you choose Windows, post on the Oracle Forums (https://community.oracle.com/community/database/general_questions/installation).
3,126
Posted By radoulov
Yes, you can. You can also use Oracle VirtualBox...
Yes, you can. You can also use Oracle VirtualBox on Windows to setup
a VM with Oracle Linux (or CentOS) and install Oracle Database on it.
3,126
Posted By radoulov
You have installed only the client. You're not...
You have installed only the client. You're not able to connect as there's no database ...
Oracle Database Server is not supported on Ubuntu, you can use a free supported
platform like Oracle Linux.
2,298
Posted By radoulov
Just for your info: with GNU awk 4+ you don't...
Just for your info:
with GNU awk 4+ you don't need an external program for sorting:

awk 'BEGIN {
# scan arrays by values ASCIIbetical order
PROCINFO["sorted_in"] = "@val_str_asc"
}
{...
Forum: Solaris 07-16-2014
8,046
Posted By radoulov
As a side note, the shell pattern * won't match...
As a side note, the shell pattern * won't match filenames that start with a dot
(unless some non-standard shell option similar to bash's dotglob is active) ,
so the above command won't show you...
933
Posted By radoulov
perl -00e'print sort <>' infile
perl -00e'print sort <>' infile
Forum: Solaris 05-26-2014
61,332
Posted By radoulov
In the output of vmstat the free memory is in KB,...
In the output of vmstat the free memory is in KB, the sar output is in pages.
bash-3.2$ sar -r 1 1

SunOS <name> 5.10 Generic_147440-09 sun4v 05/26/2014

14:23:00 freemem freeswap
14:23:01...
60,779
Posted By radoulov
You don't need to do so because neither word...
You don't need to do so because neither word splitting nor pathname expansion(globbing) are performed in this context.
Forum: Solaris 03-24-2014
1,031
Posted By radoulov
After installing the binaries (the Oracle RDBMS...
After installing the binaries (the Oracle RDBMS software), you'll need to create the database.
1,770
Posted By radoulov
Try: var_path=$PWD echo "$var_path" case...
Try:
var_path=$PWD
echo "$var_path"
case $var_path in
( *src* ) echo "this $var_path contains 'src'";;
esacOr just:
case $PWD in
( *src* ) echo "this $PWD contains 'src'";;
esac
8,064
Posted By radoulov
Remove the prompt and use &1 instead of...
Remove the prompt and use &1 instead of &client_id.
1,600
Posted By radoulov
If Perl is acceptable: perl -F, -lane' push...
If Perl is acceptable:
perl -F, -lane'
push @d, [@F];
END {
$, = ",";
for $i (0..$#F) {
push @o, [sort { $a <=> $b } map $d[$_][$i], 0..$#d]
}
for $i (0..$#d) {
...
13,029
Posted By radoulov
Or: [ -e "$DIRTOCREATE" ] || mkdir -p --...
Or:
[ -e "$DIRTOCREATE" ] || mkdir -p -- "$DIRTOCREATE"
8,064
Posted By radoulov
If I understand correctly: $ cat a.sql ...
If I understand correctly:

$ cat a.sql
select &1 from dual;
$ field_name=sysdate
$ sqlplus -s '/ as sysdba' <<EOF
> @a.sql "$field_name"
> EOF
old 1: select &1 from dual
new 1: select...
Forum: Solaris 03-25-2014
7,755
Posted By radoulov
Well, as always - it depends, but a graceful...
Well, as always - it depends, but a graceful restart of Apache usually has a limited impact.
6,848
Posted By radoulov
To defer the expansion of the variables: ...
To defer the expansion of the variables:

bash-3.00$ su - oracle -c "x=1; echo $x"
Password:
Sun Microsystems Inc. SunOS 5.10 Generic January 2005

bash-3.00$ su - oracle -c "x=1; echo...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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