10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends,
I need to find the difference between two files ,
File_1 contained 4 columns, and File_2 contained 4 columns,
I need to find the difference using 1st column,
Or need to find the difference using 3st column, (6 Replies)
Discussion started by: Shenbaga.d
6 Replies
2. UNIX for Dummies Questions & Answers
I have a file wich contains time formats and i need to get the time difference
TIME1 TIME2
=============== ===================
20120624192555.6Z 20120624204006.5Z
which means first date 2012/6/24 19:25:55,second date 2012/6/24 20:40:06 so when i get the time... (23 Replies)
Discussion started by: wnaguib
23 Replies
3. Shell Programming and Scripting
I have a file wich contains time formats and i need to get the time difference
TIME1 TIME2
==================================
20120624192555.6Z 20120624204006.5Z
which means first date 2012/6/24 19:25:55,second date 2012/6/24 20:40:06 so when i get the time... (1 Reply)
Discussion started by: wnaguib
1 Replies
4. Shell Programming and Scripting
Hi,
The requirement is to compare two files that has single column of records each. Comparison is to happen on a whole and not line by line.
File1.txt
314589929
315611087
304924413
315989094
301171509
302984393
315609549
314593632
File2.txt
315611087
304924413
315989094 (2 Replies)
Discussion started by: anandek
2 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
List all files in ~c12100 directory beginning with "BOZO" that end with either "123" or "456"
2. Relevant... (3 Replies)
Discussion started by: ScarletRavin
3 Replies
6. UNIX for Advanced & Expert Users
I have 2 files as follows.
file1.txt
<cell>123</cell>
<cell>345</cell>
file2.txt
<cell>123</cell>
<cell>456</cell>
out out should be
output.txt
<cell>456></cell>
How do we achieve this> The difference betwenn the two files should be wirtten to the output file..
... (2 Replies)
Discussion started by: kanthrajgowda
2 Replies
7. UNIX for Dummies Questions & Answers
Hola,
Tengo un texto texto1.txt con el siguiente contenido:
Malaga
Cadiz
Sevilla
Hola
Y otro .txt texto2.txt con:
Malaga
Cadiz
Sevilla
Cordoba
Huelva
quiero obtener en otro .txt la diferencia entre estos dos archivos: (14 Replies)
Discussion started by: danietepa
14 Replies
8. Emergency UNIX and Linux Support
I have a file which gets appended with records daily..for eg. 1st day of the month i get 9 records ,2nd day 9 records .....till the last day in the month...the no of records may vary...i store the previous days file in a variable oldfile=PATH/previousdaysfile....i store the current days file in a... (6 Replies)
Discussion started by: ganesh_248
6 Replies
9. UNIX for Dummies Questions & Answers
hi guys,
may i know the difference of find,locate and whereis ? (3 Replies)
Discussion started by: cromohawk
3 Replies
10. Shell Programming and Scripting
I am digging for certain types of files in the current directory and all its sub-directories and archiving them with the following code:
#! /usr/bin/ksh
Archive=`date +%Y_%m_%d_%T`
find . -type f \( -name \*\.ksh -o -name \*\.sql -o -name \*\.ini \) -print|xargs tar -cf... (4 Replies)
Discussion started by: manthasirisha
4 Replies
UPDATEDB(1) General Commands Manual UPDATEDB(1)
NAME
updatedb - update a file name database
SYNOPSIS
updatedb [options]
DESCRIPTION
This manual page documents the GNU version of updatedb, which updates file name databases used by GNU locate. The file name databases con-
tain lists of files that were in particular directory trees when the databases were last updated. The file name of the default database is
determined when locate and updatedb are configured and installed. The frequency with which the databases are updated and the directories
for which they contain entries depend on how often updatedb is run, and with which arguments.
In networked environments, it often makes sense to build a database at the root of each filesystem, containing the entries for that
filesystem. updatedb is then run for each filesystem on the fileserver where that filesystem is on a local disk, to prevent thrashing the
network. Users can select which databases locate searches using an environment variable or command line option; see locate(1). Databases
can not be concatenated together.
The file name database format changed starting with GNU find and locate version 4.0 to allow machines with different byte orderings to
share the databases. The new GNU locate can read both the old and new database formats. However, old versions of locate and find produce
incorrect results if given a new-format database.
OPTIONS
--findoptions='-option1 -option2...'
Global options to pass on to find. The environment variable FINDOPTIONS also sets this value. Default is none.
--localpaths='path1 path2...'
Non-network directories to put in the database. Default is /.
--netpaths='path1 path2...'
Network (NFS, AFS, RFS, etc.) directories to put in the database. The environment variable NETPATHS also sets this value. Default
is none.
--prunepaths='path1 path2...'
Directories to not put in the database, which would otherwise be. Remove any trailing slashes from the path names, otherwise updat-
edb won't recognise the paths you want to omit (because it uses them as regular expression patterns). The environment variable
PRUNEPATHS also sets this value. Default is /tmp /usr/tmp /var/tmp /afs.
--prunefs='path...'
File systems to not put in the database, which would otherwise be. Note that files are pruned when a file system is reached; any
file system mounted under an undesired file system will be ignored. The environment variable PRUNEFS also sets this value. Default
is nfs NFS proc.
--output=dbfile
The database file to build. Default is /var/lib/locatedb.
--localuser=user
The user to search non-network directories as, using su(1). Default is to search the non-network directories as the current user.
You can also use the environment variable LOCALUSER to set this user.
--netuser=user
The user to search network directories as, using su(1). Default is nobody. You can also use the environment variable NETUSER to
set this user.
--old-format
Create the database in the old format. This is a synonym for --dbformat=old.
--dbformat=F
Create the database in format F. The default format is called LOCATE02. F can be old to select the old database format (this is
the same as specifying --old-format). Alternatively the slocate format is also supported. When the slocate format is in use, the
database produced is marked as having security level 1. If you want to build a system-wide slocate database, you may want to run
updatedb as root.
--version
Print the version number of updatedb and exit.
--help Print a summary of the options to updatedb and exit.
SEE ALSO
find(1), locate(1), locatedb(5), xargs(1) Finding Files (on-line in Info, or printed)
BUGS
The updatedb program correctly handles filenames containing newlines, but only if the system's sort command has a working -z option. If
you suspect that locate may need to return filenames containing newlines, consider using its --null option.
The best way to report a bug is to use the form at http://savannah.gnu.org/bugs/?group=findutils. The reason for this is that you will
then be able to track progress in fixing the problem. Other comments about updatedb(1) and about the findutils package in general can be
sent to the bug-findutils mailing list. To join the list, send email to bug-findutils-request@gnu.org.
UPDATEDB(1)