Hi,
I want to get the disk usage of a directory. But I want it to ignore a particular directory within it.
Lets say I want disk usage of all files/dirs within dir1 except those that are named .snapshot
Does du have the option of excluding a particular directory. (1 Reply)
If I execute the command "ls -l /export/home/abcde/dev/proj/code/* | awk -F' ' '{print $9}' | cut -d'/' -f6-8" it will list all the files in /export/home/abcde/dev/proj/code/ directory as well as the files in subdirectories also
proj/code/test.sh
proj/code/test1.c
proj/code/unix... (8 Replies)
HI,
I have upgraded nim master and client to TL8,SP6. Now when the mksysb backup ran from master,it is not excluding directories specified in /etc/exclude.rootvg in the client.Instead,mksysb is getting created for all the file systems in the rootvg. This problem only appeared after the TL... (3 Replies)
I have a DB folder which sizes to 60GB approx. It has logs which size from 500MB - 1GB. I have an Installation which would update the DB. I need to backup this DB folder, just incase my Installation FAILS. But I do not need the logs in my backup. How do I exclude them during compression (tar)?
... (2 Replies)
I am familiar with using tar and exclude/include files:
tar zcf backup.dirs.tgz --files-from=include.mydirs --exclude-from=exclude.mydirs --no-recursion
but was wondering if I could use find in the same way. I know that you can just specify the directories to exclude but my list is... (2 Replies)
I wrote this korn script and ran into a hole. I can use find to exclude all the hidden directories and to use my include file/exclude files for running a full backup
find / -depth -ipath '/home/testuser/.*' -prune -o -print| grep -f include.mydirs | grep -v -f exclude.mydirs
but when I... (8 Replies)
I am new to Shell Scripting and need some help.
The following batch job has been failing for me due to the .nfsxxx files in use. I need to know how to modify the following script to exclude the .nfsxxx files so this batch job will not fail on me. I have done lots of googling and keep coming back... (2 Replies)
Hi All,
I am bit puzzled with this requirement where I need to list the files in a directory. However, files are being continuously written to this folder through FTP. Hence I need to exclude the file which is being written at the time of listing the directory. I thought of using file time... (5 Replies)
hi,
I would like to exlcude certain files which starts with AUS from a directory while gzip the files but i need it in gzip command only
direct:
AUS1.tx
AUS2.txt
NZ1.txt
i want to gzip only NZ1.txt to NZ1.gz files starting with AUS should not be gzipped and i need it in gzip... (23 Replies)
Hi.
I want to schedule a job at some directory will several files in it.
But there maybe a situation whereby some of the files at the point of the schedule are still transferring during that time.
So I want to skip those files from being processed.
Two method that come to my mind:
1.... (5 Replies)
Discussion started by: aimy
5 Replies
LEARN ABOUT CENTOS
encode::gsm0338
Encode::GSM0338(3) User Contributed Perl Documentation Encode::GSM0338(3)NAME
Encode::GSM0338 -- ESTI GSM 03.38 Encoding
SYNOPSIS
use Encode qw/encode decode/;
$gsm0338 = encode("gsm0338", $utf8); # loads Encode::GSM0338 implicitly
$utf8 = decode("gsm0338", $gsm0338); # ditto
DESCRIPTION
GSM0338 is for GSM handsets. Though it shares alphanumerals with ASCII, control character ranges and other parts are mapped very
differently, mainly to store Greek characters. There are also escape sequences (starting with 0x1B) to cover e.g. the Euro sign.
This was once handled by Encode::Bytes but because of all those unusual specifications, Encode 2.20 has relocated the support to this
module.
NOTES
Unlike most other encodings, the following aways croaks on error for any $chk that evaluates to true.
$gsm0338 = encode("gsm0338", $utf8 $chk);
$utf8 = decode("gsm0338", $gsm0338, $chk);
So if you want to check the validity of the encoding, surround the expression with "eval {}" block as follows;
eval {
$utf8 = decode("gsm0338", $gsm0338, $chk);
};
if ($@){
# handle exception here
}
BUGS
ESTI GSM 03.38 Encoding itself.
Mapping x00 to '@' causes too much pain everywhere.
Its use of x1b (escape) is also very questionable.
Because of those two, the code paging approach used use in ucm-based Encoding SOMETIMES fails so this module was written.
SEE ALSO
Encode
perl v5.16.3 2013-04-29 Encode::GSM0338(3)