Hi,
I have a file a.txt and it has values in it
Eg :-
I need to read through the file and find the number that is the greatest in them all.
Can any one assit me on this.
Thanks (30 Replies)
Hi,I am new to shell scripting and i want to find the line numbers of matching braces.
The file contents are as follows
File XXX.dat
1 ( CLASS "FRUIT"
2 (TYPE "PERSISTENT")
3 (MESSAGE_TYPE "M")
4 (GET_REQRD "Y")
5 (SET_REQRD "Y")
6 )
7 ( CLASS... (3 Replies)
Hi there
does anybody know how i can get the line number from an entry or entries in a file ?? for example if i had a file
test1
test2
test3
test1
and i needed to get the line numbers for all instances of test1 in that file
with the answer being (1,4)
Would anybody be able... (7 Replies)
Hello
Wondering if anybody may be able to advise on how I can filter the contents of the following file:
<object_name>-<version> <Instance>
GM_GUI_code.fmb-4 1
GM_GUI_code.fmb-5 1
GM_GUI_code.fmx-4 ... (7 Replies)
Hello All,
What i am doing is , i tail a file from certain chatacter and then cat -n to get the line numbers.I search for a particular string and gets it line number. What i am interested in is the next line immediately after the pattern i search.
But grep gives me result for all line... (5 Replies)
i have a problem i am working on and am completely new to bash commands. I writing a script to read another file and output the max and Min number in the script. I must use variables to output the max and min numbers. grades = file with numbers in them.
This is what i got so far. Thank You in... (3 Replies)
Hi Frnds,
I need to find the line number of a particular line in a file and store that line number to a variable.
if a file named myfile contains following
look at the sun
look at the moon
look at the star
look at the ocean
i need to get the line number of the line 'look at the... (3 Replies)
Hi all,
I have a simple problem. I have given an example of the problem below.
There are 4 space-delimited columns.
2655 96 IA -0.8179
2655 96 IA -0.9144
2655 96 CPU -0.4275
2655 96 RMA -0.3407
2655 96 IA -0.9373
2655 96 ... (2 Replies)
Hello,
I am trying to find out the line numbers where regex match and put them into a file with below command:
awk '/'$pat'/ {print NR}' $fileName >> temp.txt
where $pat is the regex
but this command is taking a lot of time to execute with bigger files for size more than 5000000... (8 Replies)
Discussion started by: JoeColeEPL9
8 Replies
LEARN ABOUT NETBSD
zdump
ZDUMP(8) BSD System Manager's Manual ZDUMP(8)NAME
zdump -- time zone dumper
SYNOPSIS
zdump [--version] [-v] [-c [loyear,]highyear] [zonename ...]
DESCRIPTION
zdump prints the current time in each zonename named on the command line.
These options are available:
--version Output version information and exit.
-v For each zonename on the command line, print the time at the lowest possible time value, the time one day after the lowest possi-
ble time value, the times both one second before and exactly at each detected time discontinuity, the time at one day less than
the highest possible time value, and the time at the highest possible time value, Each line ends with
isdst=1
if the given time is Daylight Saving Time or
isdst=0
otherwise.
-c [loyear,]highyear
Cut off the verbose output near the start of the given year(s). By default, the program cuts off verbose output near the starts
of the years -500 and 2500.
LIMITATIONS
The -v option may not be used on systems with floating-point time_t values that are neither float nor double.
Time discontinuities are found by sampling the results returned by localtime at twelve-hour intervals. This works in all real-world cases;
one can construct artificial time zones for which this fails.
SEE ALSO ctime(3), tzfile(5), zic(8)BSD October 29, 2003 BSD