04-19-2013
Listing no. of files in UNIX with common prefix name
Hi,
I am entirely new to Unix, need your help to perform certain actions in unix:
Can anyone please tell me how to list the number of files in UNIX with Common prefix name. "I want just the number of files and not the names of files".
Thanks
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. Filesystems, Disks and Memory
Hi guys, i'm new to UNIX and only know a small amout about it, but have just had some changes at work which now require me to interact with and work on SUN Unix systems often. I have reasonable knowledge of PC's but hope that you will be able to help me with these questions.
Part1.
I would like... (3 Replies)
Discussion started by: Scrat
3 Replies
3. UNIX for Dummies Questions & Answers
How to list out the files which are not accessed for the last n days?
and
How to list out all the executable files in a directory?
can anyone help me on the above?
Thanks in advance. (3 Replies)
Discussion started by: venkatesht
3 Replies
4. UNIX for Dummies Questions & Answers
I have two files in UNIX.
1st file is Entity and Second File is References. 1st File has only one column named Entity ID and 2nd file has two columns Entity ID | Person ID.
I want to produce a output file where entity id's are matching in both the files.
Entity File
624197
624252
624264... (4 Replies)
Discussion started by: PRS
4 Replies
5. UNIX for Dummies Questions & Answers
Hi Unix Gurus,
I need to list all files in a Unix Directory which either end with a
.pdf or .rtf and they should be case insensitive ie .Pdf , .pDF , .RtF etc are also possible.
How can i accomplish this with with a ls command ? If not then a find command. (6 Replies)
Discussion started by: pchegoor
6 Replies
6. Shell Programming and Scripting
Dear All,
I have 2 files. If field 1, 2, 4 and 5 matches in both file1 and file2, I want to print the whole line of file1 and file2 one after another in my output file.
File1:
sc2/80 20 . A T 86 F=5;U=4
sc2/60 55 . G T ... (1 Reply)
Discussion started by: NamS
1 Replies
7. Shell Programming and Scripting
Is there a simple way to find the longest common prefix of a space-separated list of strings, optionally by field?
For example, given input:
"aaa_b_cc aaa_b_cc_ddd aaa_b_cc aaa_b_cd"with no field separator, output:
aaa_b_cwith _ field separator, output:
aaa_bI have an awk solution which... (1 Reply)
Discussion started by: CarloM
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I want to list all files present in directory those contains one specific word but exclude other.
If possible suggest unix commands instead of script to do so.
e.g.
List all files name from directory which are having "PROMOTION" word but not "LEN_PROMOTION".
Thanks (4 Replies)
Discussion started by: gauravgautam135
4 Replies
9. UNIX for Dummies Questions & Answers
Hi there,
I am looping through folders in order to rename the files in the current folder.
So, given me being a newbie here, I would do that with a for-loop. The renaming per se should be like this:
I want to add the folder-name as a prefix to the files in the folder in question. For instance,... (6 Replies)
Discussion started by: jahndavik
6 Replies
10. Shell Programming and Scripting
Dear All,
assume i have a file with content:
<Start>6000</Start>
<Stop>7599</Stop>
the output is:
6000
7000
7100
7200
7300
7400
7599
how should we use any awk, sed, perl can do this task, means to extract the uniq prefixes from the start and stop prefix.
Thanks
Jimmy (3 Replies)
Discussion started by: jimmy_y
3 Replies
LEARN ABOUT DEBIAN
nifti1_test
NIFTI1_TEST(1) User Commands NIFTI1_TEST(1)
NAME
nifti1_test - NIfTI file conversion
SYNOPSIS
nifti1_test [-n2|-n1|-na|-a2] infile [prefix]
DESCRIPTION
Converts NIfTI files from and to ANALYZE 7.5 format, compressed or uncompressed NIfTI files (pair or single file). Additionally one can
convert NIfTI headers into ASCII format for convenient manipulation of header data.
If prefix is given, then the options mean:
-a2 ==> write an ANALYZE 7.5 file pair: prefix.hdr/prefix.img
-n2 ==> write a NIFTI-1 file pair: prefix.hdr/prefix.img
-n1 ==> write a NIFTI-1 single file: prefix.nii
-na ==> write a NIFTI-1 ASCII+binary file: prefix.nia
-za2 => write an ANALYZE 7.5 file pair:
prefix.hdr.gz/prefix.img.gz
-zn2 => write a NIFTI-1 file pair: prefix.hdr.gz/prefix.img.gz
-zn1 => write a NIFTI-1 single file: prefix.nii.gz
-zna => write a NIFTI-1 ASCII+binary file: prefix.nia.gz
The default is '-n1'.
If prefix is not given, then the header info from infile file is printed to stdout.
Please note that the '.nia' format is NOT part of the NIFTI-1 specification, but is provided mostly for ease of visualization (e.g., you
can edit a .nia file and change some header fields, then rewrite it as .nii)
SEE ALSO
libnifti(1), nifti_tool(1), nifti_stats(1).
Homepage: http://niftilib.sourceforge.net
AUTHOR
The NIfTI libraries were written by the NIfTI Data Format Working Group (DFWG, http://nifti.nimh.nih.gov/ ).
This manual page was written by Michael Hanke <michael.hanke@gmail.com>, for the Debian project (but may be used by others).
Michael Hanke September 2007 NIFTI1_TEST(1)