Sponsored Content
Full Discussion: updates only
Top Forums Shell Programming and Scripting updates only Post 302283339 by otheus on Tuesday 3rd of February 2009 05:44:30 AM
Old 02-03-2009
Can the file change anywhere? Or can lines only be added to it? If lines can only be added to it, just keep track of the last line number:
Code:
wc -l <filename> >/root/lastcheck-line.dat

Then a while later, do:
Code:
read L </root/lastcheck-line.dat
awk "NR==$L,0" <filename>  >/root/temp.txt

Once you're done, you can print the length again. You can do it altogether this way:
Code:
L=1; test -s /root/lastcheck-line.dat && read L </root/lastcheck-line.dat
awk "NR==$L,0 { print } END { print NR >'/root/lastcheck-line.dat' }" <filename>  >/root/temp.txt

 

7 More Discussions You Might Find Interesting

1. AIX

unix updates- Where can I find unix updates online for IBM servers?

I have a Unix based server running Sagitta and the server is giving me an error of 4b10004 and my research tells me this is an EPROM issue, which means the processor needs to be flashed or repaired. Once up and running where can I go to get updates for Unix? (1 Reply)
Discussion started by: crainer
1 Replies

2. UNIX for Advanced & Expert Users

multiple updates

Hi all, I would like to perform multiple updates within a single database open and close. Box: solaris dB: informix This is how i do perform for single update dbaccess <dbname> -<<EOF update table1 set col1=1 where col2=1 EOF i have the col1 values in a file (some 1000 values)... (1 Reply)
Discussion started by: matrixmadhan
1 Replies

3. Red Hat

RedHat Updates

All, I'm updating my redhat servers by directly connecting to internet (redhat network). After I connecting to the internet, I see some packages in package updater.I'm trying to do update but its stucking up when it is starting updating the server. Any ideas. Thanks (4 Replies)
Discussion started by: s_linux
4 Replies

4. UNIX for Dummies Questions & Answers

CentOS updates

hello all I Installed CenTOS 5.5 and i've Run yum update command every thing went smoothly but i got the following error at the end 6:kdebase-3.5.4-21.el5.centos.1.i386: Insufficient space in download directory /var/cache/yum/updates/packages * free 6.0 M * needed 28 M ... (2 Replies)
Discussion started by: abu_shiahb
2 Replies

5. Fedora

Installing updates

Hi, Im using Fedora version 23 (latest upgrade and upates). Currently to receive the updates, I use: su -c 'yum update' This works fine, but I get: yum command has been deprecated, redirecting to '/usr/bin/dnf update'. See 'man dnf' and 'man yum2dnf' for more information. To... (1 Reply)
Discussion started by: Janning
1 Replies

6. Shell Programming and Scripting

Cron updates

This cmd will update the user's crontab with the quoted line. But how to script the update using a previously stored variable? crontab -l | awk '{print} END {print "* * * * * echo test >> /tmp/testing"}' | crontab crontab -l | awk '{print} END {print "$storedvariable"}' | crontab Does not... (3 Replies)
Discussion started by: gtsonoma
3 Replies

7. HP-UX

Software updates?

On Hp-ux,I'm not talking about security patches.But free products like SecureShell. How to know if update is avaliable?On Solaris11 is possible using pkg update. On hpux?Some tool to check for outdated products and tell if new version is avaliable? ---------- Post updated at 03:24 AM... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies
GENRB(1)							 ICU 50.1.2 Manual							  GENRB(1)

NAME
genrb - compile a resource bundle SYNOPSIS
genrb [ -h, -?, --help ] [ -V, --version ] [ -v, --verbose ] [ -e, --encoding encoding ] [ -j, --write-java [ encoding ] ] [ -s, --sourcedir source ] [ -d, --destdir destination ] [ -i, --icudatadir directory ] bundle ... DESCRIPTION
genrb converts the resource bundle source files passed on the command line to their binary form or to a Java source file for use with ICU4J. The resulting binary files have a .res extension while resource bundle source files typically have a .txt extension. Java source files have a java extension and follow the ICU4J naming conventions. It is customary to name the resource bundles by their locale name, i.e. to use a local identifier for the bundle filename, e.g. ja_JP.txt for Japanese (Japan) data, or root.txt for the root bundle. In any case, genrb will produce a file whose base name is the name of the locale found in the resource file, not the base name of the resource file itself. The binary files can be read directly by ICU, or used by pkgdata(1) for incorporation into a larger archive or library. OPTIONS
-h, -?, --help Print help about usage and exit. -V, --version Print the version of genrb and exit. -v, --verbose Display extra informative messages during execution. -e, --encoding encoding Set the encoding used to read input files to encoding. The default encoding is the invariant (subset of ASCII or EBCDIC) codepage for the system (see section INVARIANT CHARACTERS). The encodings UTF-8, UTF-16BE, and UTF-16LE are automatically detected if a byte order mark (BOM) is present. -j, --write-java [ encoding ] Generate a Java source code for use with ICU4J. An optional encoding for the Java file can be given. -s, --sourcedir source Set the source directory to source. The default source directory is specified by the environment variable ICU_DATA, or the location set when ICU was built if ICU_DATA is not set. -d, --destdir destination Set the destination directory to destination. The default destination directory is specified by the environment variable ICU_DATA or is the location set when ICU was built if ICU_DATA is not set. -i, --icudatadir directory Look for any necessary ICU data files in directory. For example, when processing collation overrides, the file ucadata.dat must be located. The default ICU data directory is specified by the environment variable ICU_DATA. INVARIANT CHARACTERS
The invariant character set consists of the following set of characters, expressed as a standard POSIX regular expression: [a-z]|[A- Z]|[0-9]|_| |+|-|*|/. This is the set which is guaranteed to be available regardless of code page. ENVIRONMENT
ICU_DATA Specifies the directory containing ICU data. Defaults to /usr/share/icu/50.1.2/. Some tools in ICU depend on the presence of the trailing slash. It is thus important to make sure that it is present if ICU_DATA is set. VERSION
50.1.2 COPYRIGHT
Copyright (C) 2000-2002 IBM, Inc. and others. SEE ALSO
derb(1) pkgdata(1) ICU MANPAGE
16 April 2002 GENRB(1)
All times are GMT -4. The time now is 01:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy