Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: pseudocoder
Forum: Solaris 02-10-2012
2,966
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
2,966
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
20,154
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,043
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,043
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,043
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,043
Posted By bartus11
Try installing "SUNWman" from your installation...
Try installing "SUNWman" from your installation media.
Forum: Programming 12-16-2010
4,385
Posted By verdepollo
update table_name set email =...
update table_name set email = replace(email,'yahoo.de', 'yahoo.com');
4,161
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...
2,999
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,129
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,489
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,489
Posted By radoulov
Backup your data first. perl -e' ...
Backup your data first.

perl -e'
/([^]]*])\s*(.*)(\..*)$/ and
rename $_, "$2 $1$3" for glob "*]*";
'
1,789
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...
6,387
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,115
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,133
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
4,949
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,203
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"
4,992
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...
5,195
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"...
1,667
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,223
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...
3,566
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
19,254
Posted By jim mcnamara
awk '{printf("%100s\n", $0) }' oldfile >...
awk '{printf("%100s\n", $0) }' oldfile > newfile
Showing results 1 to 25 of 38

 

Featured Tech Videos

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