I have a directory like below. Need help with Perl to delete all files under test1 except the one passed as parameters.The parameters will
always be the directories under test1 in the format below.
EX:
Did not find negation for unlink in perl.
Last edited by bartus11; 01-27-2014 at 05:04 PM..
Reason: Please use CODE tags
Hello,
I have several files in a specific directory.
A specific string in one file can occur in another files.
If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string.
Example.
file1
ShortName "Blue... (2 Replies)
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
How to delete last row in the file in PERL.
file1 has
a.output
b.output
c.output
d.output
e.output
expected output is
a.output
b.output
c.output
d.output (1 Reply)
Hi,
How to delete a file (if exists) using perl script.
I have used following script..
if ( -e $newfile) {
open (FILE, ">$newfile") || die "Cannot Open File\n";
print FILE;
close(FILE);
}
But it gives me error "Use of uninitialized value in print".
please help.
Thanks in... (1 Reply)
Hello All
I am implementing my task in Perl and i found an issue.
What i want to do is to remove files from the directory which were made 20 days back using Perl script (9 Replies)
I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Hi All,
I have written a script to check the file system usage and to delete the files which is consuming more space.Please check whether the script is corrcet
#Script Starts here
#!/usr/local/bin/perl
#Program to find the disk space and to delete the older files
#Checks the type of OS... (8 Replies)
he following are the files available in my directory
RSK_123_20141113_031500.txt
RSK_123_20141113_081500.txt
RSK_126_20141113_041500.txt
RSK_126_20141113_081800.txt
RSK_128_20141113_091600.txt
Here, "RSK" is file prefix and 123 is a code name and rest is just timestamp of the file when its... (7 Replies)
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
LEARN ABOUT SUSE
splashy
SPLASHY(1) Splashy POSIX boot splash system SPLASHY(1)NAME
Splashy - a user-mode, POSIX and LSB compliant, boot splashing system for UNIX.
SYNOPSIS
splashy { boot | shutdown | test | preview }
splashy_chvt { TTY_NUMBER }
DESCRIPTION
Splashy displays an image and a progress bar at boot time. When called as splashy_chvt, it allows the same functionality as the UNIX
command chvt.
OPTIONS
boot Does boot sequence. See EXAMPLES.
shutdown
Does shutdown sequence. See EXAMPLES.
test, preview
Use to test splashy without having to reboot the system. this shows a progressbar continuously moving as well as the current image
for the currently selected theme. See EXAMPLES.
EXAMPLES
"/sbin/splashy test"
Used to test splashy. Useful for testing new themes.
"/sbin/splashy boot"
Used when booting your system. This is run automatically by a initrc script during boot.
"/sbin/splashy shutdown"
Similar in spirit to boot, but run during shutdown. This is run automatically by a initrc script during shutdown.
FILES
/etc/splashy/config.xml
Main configuration. defines how splashy should be setup.
/etc/splashy/themes/default/config.xml
Default theme. defines how the images displayed by splashy should be setup, their location and other theme-related variables.
NOTES
To use splashy as chvt, make a symbolic link from splashy's location to a new path. i.e.: cd /sbin; ln -s splashy splashy_chvt
SEE ALSO splashy_config(1), splashy_update(1), splashy-config.xml(5), splashy-theme.xml(5)AUTHORS
Luis Mondesi <lemsx1@gmail.com>
perl v5.12.1 2010-07-05 SPLASHY(1)