03-11-2005
unix cmd
Hi
i want a shell script to get the date which is mentioned in the first line of a file.
file format is:
#EOD rates on 20050228 at 22:06:37
--------
--------
-------
first line length is always fixed.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'd like to get only the first 5 lines of the ls -lt command, i tried to pass to head as a file ip but didnt work, is there any other way to do it.
I am trying to find the lates log files for the last 5 days.
what i tried
head -5 < ls -lt alog*
Thanks.
-d (1 Reply)
Discussion started by: dharma
1 Replies
2. Shell Programming and Scripting
Hello,
I enjoy using the unix screen utility, but my vi sessions lose the ability to syntax highlight code and split screen(:vs or :sp). When not using screen, I can do those things within vi. Anybody experience this and know the fix?
Thanks (1 Reply)
Discussion started by: geephei
1 Replies
3. Shell Programming and Scripting
Combining many lines to one using awk or any unix cmd
Inputfile:
Output :
Appreciate help on this. (14 Replies)
Discussion started by: pinnacle
14 Replies
4. Programming
Hello experts,
How can I retrieve the output from a Unix command and use it as string variable in my C program?
For example, when I issue the command 'date' I get:
Tue Jun 11 09:54:16 EEST 2009
I do not want to redirect the output of the command to a file and then open the file from... (3 Replies)
Discussion started by: Goseib
3 Replies
5. Shell Programming and Scripting
Hi,
I am using SunOS
I want to serch my previous command
from unix prompt
(like on AIX we can search by ESC -k)
how to get in SunOs
urgent help require. (10 Replies)
Discussion started by: RahulJoshi
10 Replies
6. Shell Programming and Scripting
how to call unix script in informatoca thrgh cmd task (0 Replies)
Discussion started by: sunilamarnadh
0 Replies
7. Shell Programming and Scripting
I am new to to unix and I want to make my own basic shell. What is the code I can use to change the unix cmd console display? For example my unix display prompt says MyCompterName~, I want it to say WhatEverMan~ (3 Replies)
Discussion started by: megaearth77
3 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
This is my first and undoubtedly many posts to come. I'm new to using unix and would like a hand with this problem I have. What i'm trying to do is match 2 sets of data from 2 files and put result into file 3. Sounds simply but there is a catch, the match is a "partial field" match, if... (2 Replies)
Discussion started by: tugar
2 Replies
9. AIX
Hi,
Here's the version of unix that we are working on.
> uname -a
AIX yyyyyyyy 1 6 00F613E24C00
@:on(cluster303)/iishomea/kmani00->
i have application id: aaabbb
Now i need to check whether the password for the application id set to non expiry type or not.
Moreover, with that unix... (3 Replies)
Discussion started by: kmanivan82
3 Replies
10. Shell Programming and Scripting
Hello,
I am trying to write a unix cmd , that if files in folder /path/FTP are all zero kb or empty then good to go, if not empty then sleep for 8 hrs.
Following cmd list me the files which are not empty, But when I am incorporating IF ELSE cmd fails
find /path/FTP. -type f -exec wc -l {}... (6 Replies)
Discussion started by: bluestarmoon
6 Replies
LEARN ABOUT NETBSD
isdnd.rates
ISDND.RATES(5) BSD File Formats Manual ISDND.RATES(5)
NAME
isdnd.rates -- isdn4bsd ISDN management daemon rates description file
DESCRIPTION
The file isdnd.rates contains descriptions how long charging units last at a given time of day, day of week and the distance to the destina-
tion. If this file is available, this information may be used by the isdnd(8) ISDN connection management daemon to calculate the short hold
time for a connection.
The format of a rate entry line is as follows:
The first field, the (rate-code) defines a collection of rates (for each day of the week) which can be referenced in the isdnd(8) configura-
tion file isdnd.rc(5). This field must start with the identifier ``ra'' followed by a digit in the range of zero to four.
The second field, the (day-number) selects the day of week for which this entry defines the rates, where 0 stands for Sunday, 1 for Monday
and so on until the digit 6 which stands for Saturday.
The rest of the line consists of one or more space separated fields which have the following syntax:
start_hour.start_minutes-end_hour.end_minutes:charge_unit_length
Start_hour and start_minutes define the begin of a time section and end_hour and end_minutes define the end. Charge_unit_length define the
length of a charging unit in the previously defined time section. No spaces or tabs are allowed inside this field. The hour and minutes
specifications MUST have exactly 2 digits, in case just one digit is needed, a leading 0 must be used.
For example,
14.00-18.00:90
defines, that between 2:00 PM and 6:00 PM the length of one charging unit lasts 90 seconds.
FILES
/etc/isdn/isdnd.rates The default rates specification file for the isdnd ISDN daemon.
EXAMPLES
The line:
ra0 0 00.00-05.00:240 05.00-21.00:150 21.00-24.00:240
defines the unit lengths for a Sunday.
SEE ALSO
isdnd.rc(5), isdnd(8)
AUTHORS
The rates subsystem for the isdnd(8) daemon to which isdnd.rates belongs was designed and written by Gary Jennejohn.
The isdnd(8) daemon and this manual page were written by
Hellmuth Michaelis <hm@kts.org>.
BSD
September 11, 1998 BSD