Search Results

Search: Posts Made By: radoulov
28,584
Posted By radoulov
... and zsh.
... and zsh.
54,492
Posted By radoulov
Using fold: fold -b70 input
Using fold:

fold -b70 input
5,078
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.
87,059
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
8,536
Posted By radoulov
Try to change: expect "password:" ...
Try to change:

expect "password:" to

expect "Password:"
12,556
Posted By radoulov
Try: LC_ALL=C tree
Try:
LC_ALL=C tree
1,260
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
1,260
Posted By radoulov
Try: sed '/^dns\.com$/,+2d' /tmp/temp.txt
Try:
sed '/^dns\.com$/,+2d' /tmp/temp.txt
5,633
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
4,168
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).
4,168
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.
4,168
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.
3,461
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
10,447
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...
1,205
Posted By radoulov
perl -00e'print sort <>' infile
perl -00e'print sort <>' infile
Forum: Solaris 05-26-2014
62,754
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...
79,328
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,434
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.
2,756
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
15,680
Posted By radoulov
Remove the prompt and use &1 instead of...
Remove the prompt and use &1 instead of &client_id.
2,111
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) {
...
21,989
Posted By radoulov
Or: [ -e "$DIRTOCREATE" ] || mkdir -p --...
Or:
[ -e "$DIRTOCREATE" ] || mkdir -p -- "$DIRTOCREATE"
15,680
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
10,499
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.
8,549
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

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