How to sort such files which contains records of varying length and varying lines? (With respect to Bash shell)
Eg:
Each record begins with a sting of 1/0(binary) which may or may not be followed by properties like AB,BS etc.
I have to sort such records on the basis of 1/0 string and keep the... (2 Replies)
Hi guys,
Probably an easy one, but how do you sort a directory so that the files come first, then subdirectories?
ie ./dir1 has
file 1
subdir 1
file 2
i need it to become
file 1
file 2
subdir 1
as i'm using it in a script to pass each one through a for loop, and would like all... (3 Replies)
If I do an ls -l on a directory I get this:
-rw-r--r-- 1 root other 5248094 Jun 24 03:56 monitor.log.7
-rw-r--r-- 1 root other 5248303 Jul 11 11:19 ct.log.1
-rw-r--r-- 1 root other 5248907 Jun 29 06:01 ct_monitor.log.5
-rw-r--r-- 1 root other 5249042 Jun 19... (1 Reply)
I am new to shell scripting
can u guys please provide a small script for the following senario
step1:need to find some files in a directory for ex having 020908
step2:sort them and redirecting to new file
(ex:sort abc > abc.sort)
i am trying this but giveing flag error
ls -l... (4 Replies)
I have a text file with full list of files with their full path. I wanted to sort it by directory then files then subdirectory by alphabetically. When I used the sort command it doesn't give like what I want. Could somebody help me on this.
Here is the ex:
This is what I'm getting... (2 Replies)
Hi All,
My folder contains the files as:
$ ls -lrt
total 50
lms_prap_rf_20100422_99.xml
lms_prap_rf_20100422_9.xml
lms_prap_rf_20100422_100.xml
lms_prap_rf_20100422_10.xml
lms_prap_rf_20100426_1.xml
I need to get the sorting of the above file based on numbers. I need first file in... (5 Replies)
find / -type f 2> /dev/null | find -inum +1 2> /dev/null | find -mtime -30 2> /dev/null
what i am trying to do i search all regular files in root directory with one or more
inodes modified within last 30 days.
the /dev/null is to suppress the permission denied outputs.
i am now trying to... (5 Replies)
1. The problem statement, all variables and given/known data:
I'm trying to use a directory path to enter a new directory and sort the files there. I'm using the language C with a system call in Unix to sort the files from smallest to largest.
2. Relevant commands, code, scripts, algorithms:... (1 Reply)
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
LEARN ABOUT CENTOS
fmtutil-sys
FMTUTIL(1) TeX Live FMTUTIL(1)NAME
fmtutil - utility for maintaining TeX format files
fmtutil-sys - utility for maintaining TeX format files system-wide
SYNOPSIS
fmtutil [OPTION...] COMMAND
fmtutil-sys [OPTION...] COMMAND
DESCRIPTION
fmtutil is used to create or recreate format and hyphenation files or show information about format files.
COMMAND is one of:
--all recreate all format files
--byengine enginename
(re)create formats that depend on the engine enginename
--byfmt formatname
(re)create the format for format formatname
--byhyphen hyphenfile
(re)create formats that depend on the hyphenation file hyphenfile
--catcfg
output the content of the config file
--disablefmt formatname
disable formatname in config file
--edit no-op in TeX Live
--enablefmt formatname
ensable formatname in config file
--help print a summary of commands and options
--listcfg
list (enabled and disabled) configurations, filtered to available formats
--missing
create all missing format files
--refresh
recreate only existing format files
--showhyphen formatname
print the name of the hyphenation file for the format formatname
--version
show version info
OPTIONS --cnffile file
specify the configuration file fmtutil should use
--dolinks
(not implemented, just for compatibility)
--fmtdir directory
set the destination directory for format files generated by fmtutil to directory
--force
(not implemented, just for compatibility)
--no-engine-subdir
don't use engine-specific subdir of the fmtdir
--no-error-if-no-format
exit successfully if no format is selected
--quiet
be silent
--test (not implemented, just for compatibility)
FILES
fmtutil.cnf
default configuration file
SEE ALSO kpsewhich(1)BUGS
None known, but report any bugs found to <tex-k@tug.org> (mailing list).
AUTHOR
fmtutil was written by Thomas Esser <te@dbs.uni-hannover.de> and is in the public domain.
This manual page was written by C.M. Connelly <c@eskimo.com>, for the Debian GNU/Linux system and later slightly adapted for the teTeX 3
release.
TeX Live June 2011 FMTUTIL(1)