I have a script which loop through a directory then report any file matches the given pattern,
say, the pattern is "a2006", this file would be returned
a20061101.txt
I would like to know how can I get the remaining of the filename, so
a20061101txt - a2006 = 1101.txt
Can anybody help? Thank... (2 Replies)
Hi All,
I have a set of data and i want to arrange it in a neater way.
Is there any ways i can align each term to the left such that every field start on the same vertical point
Actual Data
111111 bbb dddd zz
111111 bbbbbb dddd zz
111111 bbbbbbbbb dddd zz
111111 aa dddd zzz (2 Replies)
hi
i have a file which is like this :
aab ghj
ghj lsklk
lklkl;
ashjd
kjs
alskj
How do i remove the spaces from the beginning of a line so that all lines are indented to the left? (1 Reply)
Hi
A question about numeric display there...
Is there any option in awk that would prints a number with "left filled with zero" format, and how does it work with variable length definition?
For instance IŽd like my variable to be left filled with 0s for a length of 3 in total:
4 would be... (3 Replies)
I am new to bash scripts I need something quite easy to do in VBS,
When I wanted to get the first 5 chars I used funcition right(5,strGet)
how can I do the same in bash?
I am trying to get the MAC address in Ubuntu I have done so far
ifconfig wlan2 | grep HWaddr | awk '{print $5}' | sed -e... (3 Replies)
We are using this function tmpfile() :
FILE *tmpfp ;
if ((tmpfp = tmpfile()) == NULL)
{
fprintf(stderr, "%s: ERROR: init_operator(): ", ROUTINE);
perror("tmpfile()");
exit(ERR_OPEN);
}
and the above is raising error :
MSMD0603: ERROR:... (3 Replies)
hello all,
i have a proc binary that we run on unix environment, and it is generating this error
'' tstfile(): No space left on device ''
can you please assist on how to narrow down the problem?
thanks (4 Replies)
Here we go with a dumb question.
I am admin for a couple of old aix 5.2 and 5.3 machines and I am wondering if there is a way for me (without driving 500miles) to find out if there is room for additional hard drives in my machine.
Google is once again *sight* helpless... (5 Replies)
Hello people
I have a small fileserver running busybox (very small linux distro with most essential stuff on it) and I am trying to remove some unused directories on it.
When I try this:
rm -R test/I get:
rm: cannot remove 'test': No space left on devicedf shows:
Filesystem ... (8 Replies)
Discussion started by: GTCG
8 Replies
LEARN ABOUT MINIX
ttytab
TTYTAB() TTYTAB()
NAME
ttytab - table of login terminals
SYNOPSIS
/etc/ttytab
DESCRIPTION
The ttytab file lists all the terminal devices that one can login on. It is a simple text file that contains lines of the form:
name type "getty" "init"
The name and type fields are simple words, name is the name of the terminal device with /dev stripped off, and type tells the type of ter-
minal to initialize the TERM environment variable.
The getty and init fields may name commands that are run to allow one to login on the line, or to initialize the line. Both these fields
may be more than one word if the whole field is enclosed in double quotes. Getty is usually simply the word getty, the command that prints
a system identification banner and allows on to type a name to log in. Init is usually an stty command to set the baud rate and parity of
a serial line.
The init field may be omitted to indicate that no initialization is necessary, and the getty field may be left out to not start a login
process. Terminals should not be left out, because their place in the ttytab file determines their slot number as returned by ttyslot(3).
Comments (introduced by #) and empty lines are ignored.
EXAMPLE
A ttytab for the console, two serial lines, and a pseudo tty entry:
console minix getty
tty00 vt100 getty "stty 9600"
tty01 dialup getty "stty 38400"
ttyp0 network
ENVIRONMENT
TERM Terminal type
NOTES
It is customary to set the type to dialup for a dialin line. One can check for that name in one's .profile.
SEE ALSO gettyent(3), ttyslot(3), init(8).
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
TTYTAB()