Hello,
I have a requirement to search a directory, which contains any number of other directories for file names that contain special characters.
directory structure
DIR__
|__>DIR1
|__>DIR2__
|__>DIR2.1
|__>DIR2.2
|__>DIR3
..
... (8 Replies)
Hi,
I am stuck with a problem here.
Suppose i have a variable which is assigned some string containing special charatcers. for eg:
$a="abcdef^bbwk#kdbcd@";
I have to remove the special characters using Perl. The text is assigned to the variable implicitly.
How to do it? (1 Reply)
hi:
i have several thousand files from users and of course they use all kind of characters on filenames. I have things like:
My special report (1999 ) Lisa & Jack's work.doc
crazy.
How do I remove all this characters in the current dir and subdirs too?
Thanks. (3 Replies)
Hi,
I am trying to separate the directory from the filename using the substring and it does not like it.
$Complete_name="C:\ABCD\Reports_Split\090308.1630"
I want $File_Name as 090308.1630
I tried using Substring function and it does not like slashes in the complete_name.
Any... (5 Replies)
Hi,
On AIX 5200-07-00 I have a find command as following to delete files from a certain location that are more than 7 days old. I am being told that I cannot use -exec option to delete files from these directories.
Having said that I am more curious to know how this can be done.
an sample... (3 Replies)
Hi,
Here is my piece of code--
sub per_user_qna_detail
{
for($index=0;$index<@records;$index++)
{
if($records =~ m/^(.*)\s*Morocco.*Entering\s*Module::authenticate/)
{
printf "INSIDE per_user_qna_detail on LINE NO $index\n";
$Time_Stamp = $1;... (0 Replies)
I have 100 files, where i want to search a set of strings and make the replacement by other strings
In the first case I want to include a parameter in the name of a file
LOG_DCT = $ LOG_DIR/DCT_GERAL_"$DATAINI".log
replace to : LOG_DCT = $ LOG_DIR / DCT_GERAL_ $ 1_ "$ DATAINI". log
I did... (1 Reply)
i need to replace the any special characters with escape characters like below.
test!=123-> test\!\=123
!@#$%^&*()-= to be replaced by
\!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
I had a string in perl script as below.
Tue Augáá7 03:54:12 2012
Now I need to replace the special character with space.
After removing the special chaacters
Tue Aug 7 03:54:12 2012
Could anyone please help me here for writing the regular expression?
Thanks in advance..
Regards,
GS (1 Reply)
Hi All,
Special character ? is added in between filename. Am not able to figure our why this is happening. In my Development environment special characters are not present. This issue is happening in the higher environment.
It would be helpful if somebody can tell what are the possible... (3 Replies)
Discussion started by: weknowd
3 Replies
LEARN ABOUT DEBIAN
mkfs.gfs
mkfs.gfs(8) System Manager's Manual mkfs.gfs(8)NAME
mkfs.gfs - Make a GFS filesystem
SYNOPSIS
mkfs.gfs [OPTION]... DEVICE
DESCRIPTION
mkfs.gfs is used to create a Global File System.
OPTIONS -b BlockSize
Set the filesystem block size to BlockSize (must be a power of two). The minimum block size is 512. The FS block size cannot
exceed the machine's memory page size. On the most architectures (i386, x86_64, s390, s390x), the memory page size is 4096 bytes.
On other architectures it may be bigger. The default block size is 4096 bytes. In general, GFS filesystems should not deviate from
the default value.
-D Enable debugging output.
-h Print out a help message describing available options, then exit.
-J MegaBytes
The size of the journals in Megabytes. The default journal size is 128 megabytes. The minimum size is 32 megabytes.
-j Number
The number of journals for mkfs.gfs to create. You need at least one journal per machine that will mount the filesystem.
-O This option prevents mkfs.gfs from asking for confirmation before writing the filesystem.
-p LockProtoName
LockProtoName is the name of the locking protocol to use. The locking protocol should be lock_dlm for a clustered file system or
if you are using GFS as a local filesystem (1 node only), you can specify the lock_nolock protocol.
-q Be quiet. Don't print anything.
-r MegaBytes
mkfs.gfs will try to make Resource Groups (RGs) about this big. Minimum RG size is 32 MB. Maximum RG size is 2048 MB. A large RG
size may increase performance on very large file systems. If not specified, mkfs.gfs will choose the RG size based on the size of
the file system: average size file systems will have 256 MB RGs, and bigger file systems will have bigger RGs for better perfor-
mance.
-s Blocks
Journal segment size in filesystem blocks. This value must be at least two and not large enough to produce a segment size greater
than 4MB.
-t LockTableName
The lock table field appropriate to the lock module you're using. It is clustername:fsname. Clustername must match that in clus-
ter.conf; only members of this cluster are permitted to use this file system. Fsname is a unique file system name used to distin-
guish this GFS file system from others created (1 to 16 characters). Lock_nolock doesn't use this field.
-V Print program version information, then exit.
EXAMPLE
mkfs.gfs -t mycluster:mygfs -p lock_dlm -j 2 /dev/vg0/mygfs
This will make a Global File System on the block device "/dev/vg0/mygfs". It will belong to "mycluster" and register itself as
wanting locking for "mygfs". It will use DLM for locking and make two journals.
mkfs.gfs(8)