08-15-2008
Quote:
Originally Posted by
ukatru
Thi following command is not returning any thing.
ls -1 | \
awk '{
if (NR==FNR) {
f[$1]
f[FILENAME]
} else
if (!($1 in f))
print $1 >> "outfile"
}' cntrlfile -
Thanks
It's supposed not to be printing anything. It stores the values in "outfile". And you must fill "cntlfile" first.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies
2. Shell Programming and Scripting
Hi All,
I need a solution on my following find command
find ./.. -name '*.file' -print
BTW This gives me the output as belows
./rtlsim/test/ADCONV0/infile/ad0_dagctst.file
./rtlsim/test/ADCONV0/user_command.file
./rtlsim/test/ADCONV0/simv.daidir/scsim.db.dir/scsim.db.file... (2 Replies)
Discussion started by: user_prady
2 Replies
3. Shell Programming and Scripting
Hi,
I am new to perl:
I need to write perl script to list all the files present in directory and mail should be come to my inbox with all the files present in that directory.
advanced thanks for valuable inputs.
Thanks
Prakash GR (1 Reply)
Discussion started by: prakash.gr
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..
Thanks (3 Replies)
Discussion started by: ammu
3 Replies
5. UNIX for Dummies Questions & Answers
HI All,
At present in my server the log folder was filled up and causing memory issue.
So I am planning to write a script in such a way that the files which are older than 30 days will be deleted and also need to find the files which were not compressed and need to compress this file.... (4 Replies)
Discussion started by: arumilli
4 Replies
6. UNIX for Dummies Questions & Answers
I am running Ubuntu 11.10
I have the following files.
geo2503r05690585.html
geo2503r06020612.html
geo2503r06250641.html
geo2503r06490658.html
geo2503r06830686.html
geo2503r05860601.html
geo2503r06130624.html
geo2503r06420648.html
geo2503r06590682.html ... (4 Replies)
Discussion started by: kristinu
4 Replies
7. Shell Programming and Scripting
Hi,
I have a folder which contains files in this format.
abc-bin.000001
abc-bin.000002
abc-bin.000003
abc-bin.000004
abc-bin.000005
abc-bin.000006
abc-bin.000007
abc-bin.000008
abc-bin.000009
abc-bin.000010
abc-bin.index
I want to copy all the files between
abc-bin.000004... (6 Replies)
Discussion started by: arijitsaha
6 Replies
8. UNIX for Advanced & Expert Users
Find all files in the current directory only excluding hidden directories and files.
For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided.
`find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Discussion started by: ksailesh1
7 Replies
9. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
10. Shell Programming and Scripting
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
LEARN ABOUT DEBIAN
nxconvert
NXCONVERT(1) General Commands Manual NXCONVERT(1)
NAME
nxconvert - convert a NeXus file between different on disk file formats
SYNOPSIS
nxconvert [-x|-h4|-h5|-d|-o keepws|-o table] [infile [outfile]]
DESCRIPTION
NeXus supports different file formats for physical storage on disk or other media. nxconvert allows the user to convert a file to a dif-
ferent backend.
If no output file is supplied on the command line, the program asks for one interactively. Same if the input file is not given.
OPTIONS
The following options are supported:
-x make outfile XML
-h4 make outfile HDF4 (this is the default)
-h5 make outfile HDF5
-d make a XML based definition file used for validating NeXus files (i.e. remove the data).
-o keepws
the XML file created should preserve whitespace.
-o table
the XML file created should write the data in a table format where the columns and rows are easily imported into spreadsheet pro-
grams.
SEE ALSO
http://www.nexusformat.org
AUTHOR
nxconvert was originally written by Freddie Akeroyd and Ray Osborn.
This manual page was written by Tobias Richter <Tobias.Richter@diamond.ac.uk> and may be used by others.
June 2010 NXCONVERT(1)