10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Everyone,
I want to delete the image files from a directory, which are not listed in a TEXT file.
The directory contains large number of image files (in millions) required / not required. I want to delete the image files which are "not required".
I have generated a Text file having... (3 Replies)
Discussion started by: Praveen Pandit
3 Replies
2. Shell Programming and Scripting
Hi Team,
Here's the scenario,
I have a text file called "file_list.txt". Its content is as follows.
111.tmp
112.tmp
113.tmp
114.tmp
These files will present in "workdir" directory. It has many files. But only the files present in file_list.txt has to be deleted from the workdir... (7 Replies)
Discussion started by: kmanivan82
7 Replies
3. Shell Programming and Scripting
Hi All,
When i give the ls -lrt to list out all files with total number of files , i get the output as
ls -lrt
total 72
-rw-r--r-- 1 hari staff 796 Jul 11 09:17 va.txt
-rw-r--r-- 1 hari staff 169 Jul 13 00:20 a.log
-rwxr-xr-x 1 hari staff 659 Aug... (9 Replies)
Discussion started by: Kalaihari
9 Replies
4. Shell Programming and Scripting
Hi all,
I am using command
find $InputPath -type f -mtime +30
However, I need to capture the file listed in screen.
May I know how to achieve this?
Thank you. (12 Replies)
Discussion started by: ashly
12 Replies
5. Shell Programming and Scripting
I am trying to write a script that will copy all file listed in a text file (100s of file names) to a new directory
Assume script will run with main as current working directory and I know how many files/lines will be in List.txt
Im trying to work up a test script using this model
Contents of... (2 Replies)
Discussion started by: IAmTheGrass
2 Replies
6. Shell Programming and Scripting
1.give the command wc -l *e* > create2.txt
2.now create2.txt contains
a.txt
b.txt
c.txt
d.txt
3.create2.txt is a random file ( output may vary depends on time) (eg: a1.txt , b1.txt,c1.txt,d1.txt if time changes)
4. now i want to cut the first colum from all the files mentioned in... (12 Replies)
Discussion started by: adaleru
12 Replies
7. Shell Programming and Scripting
Hi All,
Using this command wc -l *e* > create2.txt i'm getting the following output >>>create2.txt listed output files, my requirement is how to cut the first coloum in all the files mentioned in create2.txt in perl.
50 allignment.pl
3 create.txt
4 application.txt
... (8 Replies)
Discussion started by: adaleru
8 Replies
8. Shell Programming and Scripting
Hi,
I have a data file that lists a number of files. I want to move the files named in that one to another directory. Here's what I have:
#!/usr/bin/perl -w
open(FILE, "<collision.txt");
my @lines=<FILE>;
foreach my $lines (@lines) {
system("mv $lines collisions/.");
}
close(FILE);
... (2 Replies)
Discussion started by: renthead720
2 Replies
9. Shell Programming and Scripting
I have many pdf's scattered across 4 machines. There is 1 location where I have other Pdf's maintained. But the issues it the 4 machines may have duplicate pdf's among themselves, but I want just 1 copy of each so that they can be transfered to that 1 location.
What I have thought is:
1) I have... (11 Replies)
Discussion started by: deaddevil
11 Replies
10. Shell Programming and Scripting
Hi,
Say I have this text file <copy.out> that contains a list of files/directories to be copied out to a different location.
$ more copy.out
dir1/file1
dir1/file2
dir1/file3
"dir1/white space"
dir1/file4
If I do the following:
$copy=`more copy.out`
$echo $copy
dir1/file1... (4 Replies)
Discussion started by: 60doses
4 Replies
BOOTCD(1) bootcd utils BOOTCD(1)
NAME
bootcdflopcp - copy changes made after booting from bootcd to floppy
SYNOPSIS
bootcdflopcp [-v] [-d <device>]
DESCRIPTION
bootcdflopcp will copy changes made in ram to the floppy disk. bootcdflopcp will be available as soon as your system is running from cd.
The floppy has to have a filesystem already. (See mke2fs or mformat). If you have to boot from floppy, because your cd-drive or bios does
not support to boot from cd a msdos filesystem is used to run syslinux. When bootcdflopcp is called it searches for differences between
RAM and CD. For each different file, it checks if it is listed in the files ignore, remove or change on floppy. If it is listed in change
it will be saved to change.tgz on floppy. If it is listed in remove the file will be removed from ram next boot time. If it is listed in
ignore it will be ignored. If it is not listed at all you will be interactively asked what to do.
OPTIONS
-v The option "-v" (verbose) adds messages on running.
-d <device>
Use another device instead of "/dev/fd0" to save changes.
FILES
FLOPPY:/remove
If a file is listed here the file will be deleted from ram next boot time.
FLOPPY:/change
If a file is listed here bootcdflopcp will save it in change.tgz.
FLOPPY:/ignore
If a file is listed here bootcdflopcp will ignore changes to this file.
FLOPPY:/change.tgz
Here all changed files are stored in gzipped tar format.
SEE ALSO
bootcd(1), bootcd2disk(1), bootcdwrite(1)
AUTHOR
This manual page was written by Bernd Schumacher <bernd.schumacher@hp.com>, for the Debian GNU/Linux system (but may be used by others).
Wed Feb 23 00:00:00 EET 2000 BOOTCD(1)