Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
Basic:
find . -type f -name “*.txt” -print | awk '{gsub("Ontem", "AntesdeOntem", $0); print > FILENAME}' *.txt
The idea is in folder /home/myapontamentos
I have some files and i need to change in all them the word "ontem" to "antesdeontem".
But bigger files are cut (size i mean)... (4 Replies)
Hi guys,
I checked the knowledge base before posting this question.
is there any way by which you can ALWAYS ALLOW file overwrite in AWK?. i.e. an option similar to noclobber in Korn shell.
I don't to check for files existence and remove them. (1 Reply)
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
hello
i would like to copy files from 1 location to a nother, but it has only to copy files which are newer or have a different filesize.
all has to be logged to a copy.log file (als skipped files should be in the log)
is this possible with the cp command (1 Reply)
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Hello,
I want remove files have same size in a directory.
this command only find this files.
ls -l | awk '$1!~/^d/{if(size!=""){ print}size=$8}'
I want to remove the files of the same size.
samples: 5 files are same size. I want to keep only first file.
Thank you very much for your help. (3 Replies)
I want to compare two files, and search for items that are in both. Then override the first file with that containing only elements which were in both files. I imagine something with diff, but not sure.
File 1
One
Two
Three
Four
Five
File 2
One
Three
Four
Six
Eight (2 Replies)
// Redhat
I have this code working, but need to add one more qualification so that I don't overwrite the files.
#!/bin/sh
cd /P2/log/cerner_prod/millennium/archive/
for f in *
do || continue #If this isn't a regular file, skip it.
&& continue #If a backup already... (2 Replies)
Discussion started by: Daniel Gate
2 Replies
LEARN ABOUT DEBIAN
bos_removehost
BOS_REMOVEHOST(8) AFS Command Reference BOS_REMOVEHOST(8)NAME
bos_removehost - Removes a database server machine from the CellServDB file
SYNOPSIS
bos removehost -server <machine name> -host <host name>+
[-cell <cell name>] [-noauth] [-localauth] [-help]
bos removeh -s <machine name> -ho <host name>+
[-c <cell name>] [-n] [-l] [-he]
DESCRIPTION
The bos removehost command removes the entry for each database server machine specified with the -host argument from the
/etc/openafs/server/CellServDB file on the server machine named by the -server argument.
CAUTIONS
After executing this command (and waiting for the Update Server to propagate the changes, if it is used), restart the database server
processes on all database server machines to force election of a quorum that includes the new set of machines listed in the
/etc/openafs/server/CellServDB file. The OpenAFS Quick Start Guide explains in more detail how to add and remove database server machines.
OPTIONS -server <machine name>
Indicates the server machine on which to change the /etc/openafs/server/CellServDB file. Identify the machine by IP address or its host
name (either fully-qualified or abbreviated unambiguously). For details, see bos(8).
In cells that use the Update Server to distribute the contents of the /etc/openafs/server directory, it is conventional to specify only
the system control machine as a value for the -server argument. Otherwise, repeat the command for each file server machine. For further
discussion, see bos(8).
-host <host name>+
Specifies the fully-qualified host name (such as "fs2.abc.com") of each database server machine to remove from the CellServDB file.
-cell <cell name>
Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see bos(8).
-noauth
Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see
bos(8).
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The bos command interpreter presents the ticket
to the BOS Server during mutual authentication. Do not combine this flag with the -cell or -noauth options. For more details, see
bos(8).
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following command removes the former database server machine "db2.abc.com" from the CellServDB file on the system control machine
"fs1.abc.com".
% bos removehost -server fs1.abc.com -host db2.abc.com
PRIVILEGE REQUIRED
The issuer must be listed in the /etc/openafs/server/UserList file on the machine named by the -server argument, or must be logged onto a
server machine as the local superuser "root" if the -localauth flag is included.
SEE ALSO KeyFile(5), UserList(5), bos(8), bos_addhost(8), bos_listhosts(8)
The OpenAFS Quick Start Guide at <http://docs.openafs.org/QuickStartUnix/>.
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 BOS_REMOVEHOST(8)