Appreciate if you could explain what was the issue and how you solved it. It will help others in the future.
--ahamed
hey Sorry, was busy, so replying late. Yeah I'd love to share that.
Just set a flag. Though directly were not able to set a flag. So whole command inside the flag. further took the flag value inside another var and cut the first field (as i need this one only) and used it further.may be it is the long way i used(there could be many ways) but it solved my problem
Here its:
Regards,
I am writing a POSIX script where I need to set the FS equal to a variable that was set prior to executing the awk command. Is there a way to set FS equal to a variable that has already been set in the script?
Example
LINE="FIELD1~FIELD2~FIELD3~FIELD4~FIELD5"
(the separator could be... (4 Replies)
Hi All,
I have the following code sequence for reading some bulk file and moving the content to two different arrays.
while read data
do
THREEG_PATTERN=`echo $data | egrep "3G"`
if
then
NEW_THREEG_PATTERN=`echo $THREEG_PATTERN | cut -d " " -f2`
... (12 Replies)
I have a logic like this
It initializes the flag variable as "T" at the beginning of the loop everytime
Inside each loop it checks for two conditions and updates the flag variable as "A" or "B"
In the end of the loop it checks for the value of the variable flag for "A" or "B" and execute... (4 Replies)
hello,
when I type the following command
awk -v varc="$i" '{ new=($1*varc)} { print new }'it gives outputs in 5 decimal. How can I set my outputs to 9 decimal by using awk.
thanks (5 Replies)
Hello experts,
I'm stuck with this script for three days now. Here's what i need.
I need to split a large delimited (,) file into 2 files based on the value present in the last field.
Samp: Something.csv
bca,adc,asdf,123,12C
bca,adc,asdf,123,13C
def,adc,asdf,123,12A
I need this split... (6 Replies)
do
case $option in
d ) CHEC=true;;
# more option processing can go here
\? ) echo "Unknown option: -$OPTARG"
: ) echo "Missing option argument for -$OPTARG";;
* ) echo "Unimplimented option: -$OPTARG";;
esac
done
shift $(($OPTIND - 1)) (2 Replies)
Hello,
I am having issues setting the "read-only" flag via Windows Explorer on my AIX Samba share...
I have on my AIX 7.1 system installed Samba 3.6.24 and configured, joined to our Windows domain successfully.
The samba binaries I got from perzl.org/aix
In my smb.conf I have...
... (1 Reply)
Discussion started by: c3rb3rus
1 Replies
LEARN ABOUT MOJAVE
expireover
EXPIREOVER(8) System Manager's Manual EXPIREOVER(8)NAME
expireover - Expire entries from the news overview database
SYNOPSIS
expireover [ -a ] [ -D overviewdir ] [ -f file ] [ -n ] [ -O overview.fmt ] [ -s ] [ -v ] [ -z ] [ file... ]
DESCRIPTION
Expireover expires entries from the news overview database. It reads a list of pathnames (relative to the spool directory,
/var/spool/news), from the specified files or standard input if none are specified. (A file name of ``-'' may be used to specify the stan-
dard input.) It then removes any mention of those articles from the appropriate overview database.
OPTIONS -z If the ``-z'' flag is used, then the input is assumed to be sorted such that all entries for a newsgroup appear together so that it
can be purged at once. This flag can be useful when used with the sorted output of expire(8)'s ``-z'' flag.
-s If the ``-s'' flag is used, then expireover will read the spool directory for all groups mentioned in the active(5) file, and remove
the overview entries of any articles that do not appear in the directory.
-f To specify an alternate file, use the ``-f'' flag; a name of ``-'' is taken to mean the standard input.
-a The ``-a'' flag reads the spool directory and adds any missing overview entries. It will create files if necessary. This can be
used to initialize a database, or to sync up a overview database that may be lacking articles due to a crash. Overchan should be
running, to ensure that any incoming articles get included. Using this flag implies the ``-s'' flag; the ``-f'' flag may be used to
add only a subset of the newsgroups.
-v To see a list of the entries that would be added or deleted, use the ``-v'' flag.
-n To perform no real updates, use the ``-n'' flag.
-D The ``-D'' flag can be used to specify where the databases are stored. The default directory is /var/spool/news/over.view.
-O The ``-O'' flag may be used to specify an alternate location for the overview.fmt(5) file; this is normally only useful for debug-
ging.
HISTORY
Written by Rob Robertson <rob@violet.berkeley.edu> and Rich $alz <rsalz@uunet.uu.net> (with help from Dave Lawrence <tale@uunet.uu.net>)
for InterNetNews. This is revision 1.8, dated 1996/10/29.
SEE ALSO expire(8), overview.fmt(5).
EXPIREOVER(8)