Search Results

Search: Posts Made By: pseudocoder
Forum: Solaris 02-10-2012
3,393
Posted By bartus11
You can't use ufsdump/ufsrestore with ZFS. I...
You can't use ufsdump/ufsrestore with ZFS. I think you can send ZFS snapshots to the tape though. Check zfs(1M) man page section for zfs send and zfs receive.
Forum: Solaris 02-10-2012
3,393
Posted By bartus11
Use mt command. For that you can use tar or...
Use mt command.
For that you can use tar or ufsdump/ufsrestore.
Forum: Solaris 02-01-2012
24,491
Posted By radoulov
I believe you need something like this in your...
I believe you need something like this in your /etc/hosts file:

x.x.x.x yourhostname.yourdomainname loghost yourhostname
Forum: Solaris 12-27-2011
2,300
Posted By jlliagre
That's precisely the reason why you are missing...
That's precisely the reason why you are missing the SUNWman package. The SUNWCuser package cluster doesn't contain it. It is only included in the SUNWCprog (Developer) and higher clusters.
Forum: Solaris 12-27-2011
2,300
Posted By fpmurphy
What is the output of pkginfo -l | grep...
What is the output of

pkginfo -l | grep SUNWman
Forum: Solaris 12-27-2011
2,300
Posted By jim mcnamara
That also may be a problem with the MANPATH...
That also may be a problem with the MANPATH environment variable. The default install always puts up the man pages....


find / -type d -name man

All of these directories need to be in MANPATH...
Forum: Solaris 12-27-2011
2,300
Posted By bartus11
Try installing "SUNWman" from your installation...
Try installing "SUNWman" from your installation media.
Forum: Programming 12-16-2010
5,196
Posted By verdepollo
update table_name set email =...
update table_name set email = replace(email,'yahoo.de', 'yahoo.com');
5,241
Posted By Scrutinizer
Hi pseudocoder. Not exactly. It is the other way...
Hi pseudocoder. Not exactly. It is the other way around. When you assign the output to a variable, the newline characters are retained. If you later echo that variable without quotation they are...
3,396
Posted By Scrutinizer
sed starts reading on line 1, the -n option...
sed starts reading on line 1, the -n option suppresses automatic printing.

p: print the current (first) line
n: read the second line
h: do not print that line but put it into hold space
n: read...
2,486
Posted By alister
A much simpler and more efficient way of...
A much simpler and more efficient way of accomplishing the same thing:
while read f1 f2; do
mv "$f1" "$f2"
done < file_desc

Both versions assume that filenames do not contain whitespace or...
4,974
Posted By Scrutinizer
Or Shell: for i in *]*; do e=${i##*.} ...
Or Shell:
for i in *]*; do
e=${i##*.}
f=${i%.*}
mv "$i" "${f#* } ${f%% *}.$e"
done
4,974
Posted By radoulov
Backup your data first. perl -e' ...
Backup your data first.

perl -e'
/([^]]*])\s*(.*)(\..*)$/ and
rename $_, "$2 $1$3" for glob "*]*";
'
2,294
Posted By summer_cherry
perl
my $tmp;
while(<DATA>){
chomp;
if(/THEAD/){
$tmp=$_;
next;
}
elsif(/TDETL/){
print $_," ",$tmp,"\n";
}
}
__DATA__
FHEAD File1
THEAD TRANS1-blah
TDETL HI1
TDETL HI2
TDETL...
7,401
Posted By cfajohnson
There's no need for sed (or any external...
There's no need for sed (or any external command):

file=data.dat
read num < "$file"
printf "%d\n" "$(( $num + 1 ))" > "$file"
5,713
Posted By alister
Actually, you most definitely want to quote that...
Actually, you most definitely want to quote that glob, using "*.log" or '*.log' or \*.log. If unescaped, the shell expands that glob before the find command ever sees it. That command worked...
1,260
Posted By ranjithpr
Hope below example will be helpful $...
Hope below example will be helpful

$ myvar=/net/lockbox/vol/homes/j564redist.tar.gz
$ dirname $myvar
/net/lockbox/vol/homes


Regards,

Jith
Forum: Programming 06-12-2010
5,791
Posted By ramkrix
Counting the words in a file
Please find the below program. It contains the purpose of the program itself.
/* Program : Write a program to count the number of words in a given text file */
/* Date : 12-June-2010 */

#...
4,630
Posted By vgersh99
egrep -vi '(ftp session|xxx)' which is NOT...
egrep -vi '(ftp session|xxx)'

which is NOT the same as:

grep -vi "FTP session" | grep -vi "xxx"
5,584
Posted By durden_tyler
The following works with vim, you may want to try...
The following works with vim, you may want to try it with vi -


:481,515 s/January/March/


It substitutes the first occurrence of January only.
To substitute all occurrences of January in...
6,893
Posted By frans
It can then be done by checking the modified time...
It can then be done by checking the modified time
#!/bin/bash
F="anne.txt"
M1=$(stat -c %y "$F") # Initialize to avoid running at startup
while true
do
M2=$(stat -c %y "$F")
if [ "$M2"...
2,070
Posted By aigles
And if the -o option is supported, you can do...
And if the -o option is supported, you can do :sort -nuo $1 $1

Jean-Pierre.
3,788
Posted By durden_tyler
If the result set was empty, control wouldn't...
If the result set was empty, control wouldn't even go inside the while loop; the "fetch" method wouldn't run even once.



Again, "printing nothing" is not possible because the condition for...
4,000
Posted By alister
The -m (mirroring) option enables recursive...
The -m (mirroring) option enables recursive fetching. What's needed is the no-parent option:
Regards,
Alister
21,270
Posted By jim mcnamara
awk '{printf("%100s\n", $0) }' oldfile >...
awk '{printf("%100s\n", $0) }' oldfile > newfile
Showing results 1 to 25 of 38

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