[house@leonov] cat data
m04-npt06-z30-syn.ps
m04-npt06-dp018-8x6smp.vmod
m04-npt06-sr40-syn-dp01-16x12drw.params
[house@leonov] cat data | sed 's/m04-//g'
npt06-z30-syn.ps
npt06-dp018-8x6smp.vmod
npt06-sr40-syn-dp01-16x12drw.params
hey guys
having some trouble figuring this out.
my program is supposed to take a name of a directory as a command line argument and change the filenames inside that directory to lowercase.
what i dont get is how you access that directory and go thru all the files and change the filenames... (1 Reply)
i have many files with extention filename.ASN_ERROR~ at a path. I want to move these files to another path and change extension to .ASN
There are more then 80,000 files so i cant use manual commands
muneebr (5 Replies)
I have an RHEL 5 server with 2 Broadcom on-board NICs and 2 quad-port Intel NICs. After I installed the OS, the Intel NICs became eth0-7, and the onboards are eth8 and eth9. I really need the onboard NICs to be eth0 and eth1 (I have plans to later remove the quad-ports and replace them with 10gE... (1 Reply)
Dear All,
I have some thousands of files in a folder and i need to change those file names without opening the file (no need to change anything in the file content, need to change the file name only). The filenames are as follows:
Myfile_name.1_parameter
Myfile_name.2_parameter... (6 Replies)
I have lot of files whose names are something like the following. I want to change the name of all the files from 'npt02' to 'n02'.
npt02-z30-sr65-rgdt0p50-dc0p01-16x12drw.tpf
npt02-z30-sr65-rgdt0p50-dc0p01-8x6drw.back
npt02-z30-sr65-rgdt0p50-dc0p01-8x6drw-bst-mis.xy... (5 Replies)
Hi guys,
I have lots of files that look like:
ABC.packed.dir
DEF.packed.dir
GHI.packed.dir
etc...
I would like them to have more of the usual naming convention
ABC
DEF
GHI
etc...
so I was thinking that I could: (2 Replies)
I have file names as shown and want to change the name to have only the first four numbers.
/home/chrisd/Desktop/nips/nips_2013/5212-learning-feature-selection-dependencies-in-multi-task-learning.pdf
/home/chrisd/Desktop/nips/nips_2013/5213-parametric-task-learning.pdf... (3 Replies)
I have a series of files as follows
file-1.pdf
file-2.pdf
file-3.pdf
file-4.pdf
file-5.pdf
file-6.pdf
file-7.pdf
I want to have the file names with odd numbers
starting from an initial number, for example 2000.
The result would be the following:
file-2001.pdf
file-2003.pdf... (9 Replies)
FusionInventory::Agent::Storage(3pm) User Contributed Perl Documentation FusionInventory::Agent::Storage(3pm)NAME
FusionInventory::Agent::Storage - A data serializer/deserializer
SYNOPSIS
my $storage = FusionInventory::Agent::Storage->new(
directory => '/tmp'
);
my $data = $storage->restore(
module => "FusionInventory::Agent"
);
$data->{foo} = 'bar';
$storage->save(data => $data);
DESCRIPTION
This is the object used by the agent to ensure data persistancy between invocations.
Each data structure is saved in a file, whose name is automatically determined according to object class name. An optional index number can
be used to differentiate between consecutives usages.
METHODS
new(%params)
The constructor. The following parameters are allowed, as keys of the %params hash:
logger
the logger object to use
directory
the directory to use for storing data (mandatory)
getDirectory
Returns the underlying directory for this storage.
has(%params)
Returns true if a saved data structure exists. The following arguments are allowed:
name
The file name to use for saving the data structure (mandatory).
save(%params)
Save given data structure. The following parameters are allowed, as keys of the %params hash:
name
The file name to use for saving the data structure (mandatory).
restore(%params)
Restore a saved data structure. The following parameters are allowed, as keys of the %params hash:
name
The file name to use for saving the data structure (mandatory).
remove(%params)
Delete the file containing a seralized data structure for a given module. The following parameters are allowed, as keys of the %params
hash:
name
The file name to use for saving the data structure (mandatory).
perl v5.14.2 2012-06-14 FusionInventory::Agent::Storage(3pm)