i need a script to process a password file and based on the UIDs in the password file, generate the new UID that is 1 greater than the highest uid.
i have some script logic but i dont really understand it. any help?
this is the backup script. When i run it as a non root or authority user i get the following errors for each filesystem being backedup. It then continues to the next fs. Do i have this set up correctly? am i missing something?
backup: The backup command has ended abnormally.
backup: 0511-225... (2 Replies)
How do i go about getting the uid of the user and verify ?
if
then
echo "You are not a superuser, please login as a superuser"
exit1;
fi
the above code doesn't work. can some guru please help me.
1. how to get the uid of the user ? i know by typing id but how to... (7 Replies)
Hi,
I need to get the value of 'uid' from a line in file f1. For example, in the line below, I need to get the value '150', from the 'anonuid=150' key, and I need to verify that this is a valid uid by checking it against /etc/passwd (i.e) I want to compare this uid, 150 (or more if there are any... (2 Replies)
Hi All,
I have to give permission to one of the groups called as "ABC" as like the permissions of the group "UNIXADM".
Could you please some one help on this issue ? (3 Replies)
Hi, I want to write a script to check whether an user ID is used in my server and then create that user.
If the user ID is not used, I will echo something like "OK, continue" and then continue to execute the script. Else, I will echo something like "Used, exit" and then exit the script.
As... (4 Replies)
Hello,
I am trying to get UID # greater than 1000 from all linux server, I tried this script getting this error message, someone please suggest.
$for i in `cat hostlist.0709.org` ; do ssh -t $i 'awk -F':' "{ if($3 >= 1000) print $0 }" /etc/passwd ' >> output ; done
$ cat output
hostname1... (4 Replies)
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (2 Replies)
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (14 Replies)
Discussion started by: thisissouvik
14 Replies
LEARN ABOUT OSX
perlcn
PERLCN(1) Perl Programmers Reference Guide PERLCN(1)NAME
perlcn - XXXX Perl XX
DESCRIPTION
XXXX Perl XXX!
X 5.8.0 XXX, Perl XXXXXX Unicode (XXX) XX, XXXXXXXXXXXXXXXXXXX; CJK (XXX) XXXXXXXX. Unicode XXXXXXX, XXXXXXXXXXXX: XXXX, XXXX, XXXXXXXX
(XXX, XXXX, XXXX, XXXX, XXX, XXXX, XX). XXXXXXXXXXXXXX (X PC XXXX).
Perl XXX Unicode XXXX. XXX Perl XXXXXXXXXX Unicode XX; Perl XXXXXX (XXXXXXXXX) XXX Unicode XXXX. XXXXXXX, XXXXX Unicode XXXXXXXXXXXX, Perl
XXX Encode XXXX, XXXXXXXXXXXXXXXXXXX.
Encode XXXXXXXXXXXXXXXXX ('gb2312' XX 'euc-cn'):
euc-cn Unix XXXXX, XXXXXXXXX
gb2312-raw XXXXX (XXX) GB2312 XXX
gb12345 XXXXXXXXXXXXXX
iso-ir-165 GB2312 + GB6345 + GB8565 + XXXX
cp936 XXX 936, XXXX 'GBK' (XXXXX) XX
hz 7 XXXXX GB2312 XX
XXXX, X EUC-CN XXXXXXX Unicode, XXXXXXXX:
perl -Mencoding=euc-cn,STDOUT,utf8 -pe1 < file.euc-cn > file.utf8
Perl XXXX "piconv", XXXXX Perl XXXXXXXXXXX, XXXX:
piconv -f euc-cn -t utf8 < file.euc-cn > file.utf8
piconv -f utf8 -t euc-cn < file.utf8 > file.euc-cn
XX, XX encoding XX, XXXXXXXXXXXXXXXXX, XXXX:
#!/usr/bin/env perl
# XX euc-cn XXXX; XXXXXXXXXXXXX euc-cn XX
use encoding 'euc-cn', STDIN => 'euc-cn', STDOUT => 'euc-cn';
print length("XX"); # 2 (XXXXXXX)
print length('XX'); # 4 (XXXXXXX)
print index("XXXX", "XX"); # -1 (XXXXXXXX)
print index('XXXX', 'XX'); # 1 (XXXXXXXX)
XXXXXXXX, "X" XXXXXXX "X" XXXXXXXXX EUC-CN XX "X"; "X" XXXXXXXX "X" XXXXXXXXX "X". XXXXXX EUC-CN XXXXXXXXXXX.
XXXXXXX
XXXXXXXXXXX, XXX CPAN (<http://www.cpan.org/>) XX Encode::HanExtra XX. XXXXXXXXXXX:
gb18030 XXXXXXX, XXXXXX
XX, Encode::HanConvert XXXXXXXXXXXXXXXX:
big5-simp Big5 XXXXX Unicode XXXXXX
gbk-trad GBK XXXXX Unicode XXXXXX
XXX GBK X Big5 XXXX, XXXXXXXXX b2g.pl X g2b.pl XXXX, XXXXXXXXXXX:
use Encode::HanConvert;
$euc_cn = big5_to_gb($big5); # X Big5 XX GBK
$big5 = gb_to_big5($euc_cn); # X GBK XX Big5
XXXXXX
XXX Perl XXXXXXXXX (XXXXXXXXX), XXXXXXX Perl XXX, XX Unicode XXXXX. XX, XXXXXXXXX:
XX Perl XXXXX
<http://www.perl.com/>
Perl XXX (XXXXXXXX)
<http://www.cpan.org/>
Perl XXXXX (Comprehensive Perl Archive Network)
<http://lists.perl.org/>
Perl XXXXXX
XX Perl XXX
<http://www.oreilly.com.cn/index.php?func=booklist&cat=68>
XXXXXXXXX Perl XX
Perl XXXXX
<http://www.pm.org/groups/asia.html>
XX Perl XXXXX
Unicode XXXX
<http://www.unicode.org/>
Unicode XXXX (Unicode XXXXXX)
<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>
Unix/Linux XX UTF-8 X Unicode XXX
SEE ALSO
Encode, Encode::CN, encoding, perluniintro, perlunicode
AUTHORS
Jarkko Hietaniemi <jhi@iki.fi>
Audrey Tang (XX) <audreyt@audreyt.org>
perl v5.16.2 2012-10-11 PERLCN(1)