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
SUSPICIOUS-SOURCE(1) General Commands Manual SUSPICIOUS-SOURCE(1)
NAME
suspicious-source - search for files that are not the GPL's "preferred form of modification"
SYNOPSIS
suspicious-source [options]
DESCRIPTION
suspicious-source is a script that outputs a list of files which are not common source files. This should be run in the root of a source
tree to find files which might not be the "preferred form of modification" that the GPL and other licenses require.
The files inside version control system directories (like .bzr/ or CVS/) are not considered.
OPTIONS
-h, --help
Show this help message and exit.
-v, --verbose
Print more information.
-d directory, --directory=directory
Check the files in the specified directory instead of the current directory.
-m mimetype, --mimetype=mimetype
Add mimetype to list of white-listed MIME types.
-e extension, --extension=extension
Add extension to list of white-listed extensions.
AUTHORS
suspicious-source and this manpage have been written by Benjamin Drung <bdrung@debian.org>.
Both are released under the ISC license.
DEBIAN
Debian Utilities SUSPICIOUS-SOURCE(1)