09-27-2009
List all files except *.txt in a directory
I have many types of files (Eg: *.log, *.rpt, *.txt, *.dat) in a directory. I want to display all file types except *.txt.
What is the command to display all files except "*.txt"
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, hopefully this is a fairly simple Q&A.
I have a clean file list of approximately 180 filenames with no directory or slashes in front of the filename nor any extension or dot ".". I would like to read from this list, find these files recursively down through directory trees, copy the files... (1 Reply)
Discussion started by: fxvisions
1 Replies
2. UNIX for Dummies Questions & Answers
Hi there!
I have 150 txt files named chunk1, chunk2, ........., chunk150. I have a second file called string.txt with more than 1000 unique strings, house, dog, cat ... I want to know which command I should use to count how many times each string appears in the 150 files.
I have tried... (4 Replies)
Discussion started by: Pep Puigvert
4 Replies
3. Solaris
Dear experts,
In a directory i have both *.TXT and *.txt files. I have a script-
for file in `ls *.txt`; do
mv $file /tmp/$file
How to list both *.txt and*.TXT file in one command so that script will move both .txt or .TXT whatever it find.
br//purple (4 Replies)
Discussion started by: thepurple
4 Replies
4. Shell Programming and Scripting
foreach file ($dir1/*)
if ($file ~ *.txt) then
echo "Skipping $file (is a txt file)"
endif
end
that should work right guys? :confused: (15 Replies)
Discussion started by: pantelis
15 Replies
5. Solaris
I want equivalent of ftp in sftp for listing of files into local machine from sftp location.
ftp>ls -l list.txt
the above creates a file list.txt in the local machine's current directory.
sftp>ls -l list.txt
it is giving
Couldn't stat remote file: No such file or directory
is there... (1 Reply)
Discussion started by: megh
1 Replies
6. Shell Programming and Scripting
HI All,
I am coding a shell script which will pick all the .csv files in a particular directoryand write it in to a .txt file, this .txt file i will use as a source in datastage for processing.
now after the processing is done I have to move and archive all the files in the .txt file to a... (5 Replies)
Discussion started by: subhasri_2020
5 Replies
7. Shell Programming and Scripting
I am having following folder structure.
/root/audios/pop
/root/audios/jazz
/root/audios/rock
Inside those pop, jazz, rock folders there are following files,
p1.ul, p2.ul, p3.ul, j1.ul, j2.ul, j3.ul, r1.ul, r2.ul, r3.ul
And I have a file named as "audio.txt" in the path /root/audios,... (11 Replies)
Discussion started by: gopikrish81
11 Replies
8. Shell Programming and Scripting
wget -x -i link.txt
The above downloads and create unique entries for the 97 links in the text file. However, each new file is saved as CM080 with a FILE extention. Is there a way to convert each file in that directory to a .txt? The 97 files are in... (12 Replies)
Discussion started by: cmccabe
12 Replies
9. Shell Programming and Scripting
I need a hint for reading manpage (I did rtfm really) of cpio to do this task as in the headline described. I want to put all files of a certain type, lets say all *.txt files or any other format. Spread in more than hundreds of subdirectories in one directory I would like to select them and just... (3 Replies)
Discussion started by: 1in10
3 Replies
10. UNIX for Beginners Questions & Answers
Hello, this is my first thread here :)
So i have a text file that contains words in each line like
abcd
efgh
ijkl
mnop
and i have 4 txt files, i want to add each line to each file, like file 1 gets abcd at the end; file 2 gets efgh at the end ....
I tried with:
cat test | while read -r... (6 Replies)
Discussion started by: azaiiez
6 Replies
LEARN ABOUT SUNOS
verifier
verifier(1M) Application Server Utility verifier(1M)
NAME
verifier - validates the J2EE Deployment Descriptors against application server DTDs
SYNOPSIS
verifier [-v] [-d destination_directory] [-r [a|w|f]] jar_filename
Use the verifier utility to validate the J2EE deployment descriptors and the Sun ONE Application Server specific deployment descriptors. If
the application is not J2EE compliant, an error message is printed.
When you run the verifier utility, two results files are created in XML and TXT format. The location where the files are created can be
configured using the -d option. The directory specified as the destination directory for result files should exist. If no directory is
specified, the result files are created in the current directory. Result files are named as jar_filename_verified.xml and jar_filename_ver-
ified.txt
The XML file has various sections that are dynamically generated depending on what kind of application or module is being verified. The
root tag is static-verification which may contain the tags application, ejb, web, appclient, connector, other, error and failure-count. The
tags are self explanatory and are present depending on the type of module being verified. For example, an EAR file containing a web and EJB
module will contain the tags application, ejb, web, other, and failure-count.
If the verifier ran successfully, a result code of 0 is returned. A non-zero error code is returned if the verifier failed to run.
OPTIONS
-v verbose debugging is turned on.
-d identifies where the result files get placed.
-r identifies the reporting level defined as one of the following:
o a sets output reporting level to display all results (default)
o w sets output reporting level to display warning and failure results
o f sets output reporting level to display only failure results
jar_filename name of the ear/war/jar file to perform static verification on. The results of verification are placed in two files
jar_filename_verified.xml and jar_filename_verified.txt in the destination directory.
Example 1: Using verifier in the Verbose Mode
example% verifier -v -d /verifier-results -rf sample.ear
Where -v runs the verifier in verbose mode, -d specifies the destination directory, and -rf displays only the failures. The results are
stored in /verifier-results/sample.ear_verified.xml and /verifier-results/sample.ear_verified.txt.
asadmin(1M)
Sun Java System Application Server March 2004 verifier(1M)