So the file is a plain text file and it does not contain any non printable characters. The thing that concerns me is why is the tail command working fine and the head command would not work.
Cant Get Netscape to work... I get this messsage:
Perhaps there is a problem with your name server? if your site must use a non-root name server, you will need to set the $SOCKS_NS environment variable to point at the appropreate name server. It may (or may not) be necessary to set this... (2 Replies)
Hey guys i'm creating a dos style rename script, so if a user types say q14.* as the 1st param and b14.* as the 2nd and will rename all q14 files to b14 but keep the extensions, so i've developed nearly the full script "i think", if i use echo(echo "if $1 had been renamed it would now be... (3 Replies)
ive been trying to write a simple (at least i thought it was) script to launch my wireless usb under ubuntu with kde. im using nano.
when i run it from a terminal it works fine, but it just wont run from the script. there is a caveat, but first heres the script.
... (7 Replies)
Hi, I have the following problem. I have files with one column of data (let's say file1.dat, file2.dat...file6.dat), and I would like to record the first value of the column of each file into another file (let's name it fileall.dat), which would have the the six values, one in each column. I use to... (4 Replies)
just downloaded Ajaxterm-0.10 on my Mac 10.5.8 and after a ./ajaxterm.py i get:
AjaxTerm at http://localhost:8022/
which looks ok but as soon i go to the website:
./ajaxterm.py:418: DeprecationWarning: 'I' format requires 0 <= number <= 4294967295
fcntl.ioctl(fd,... (0 Replies)
For some reason when I run these separately they work but when they are in a script file the second wont:
printf "%s\n" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" | tee $HOME/bpl/random
RANDOM1=$( <$HOME/bpl/random ) Anyone know why? (8 Replies)
This is my first script and I wont get it working.. sorry for being a total noob but here it is:
#./bin/sh -x
echo "1:st argument = $1";
echo "2:nd argument = $2";
grep "$1" "$2"
In the terminal I write, for example, su.sh sausage sausage.txt
Also tried su.sh "sausage" "sausage.txt" but... (2 Replies)
Hi,
I was asked to connect a KVM screen to a Sun Fire V440 last night so I connected it up but no joy and nothing on the KVM screen. I was told that a reboot may fix the problem so connected to the ALOM and rebooted. On the plus side, the KVM screen now works but I lost the ALOM connection.
... (0 Replies)
Hi,
I have setup my .profile with some helpful aliases and some set commands in it.
I have it as:
alias gr='autorep -G'
alias c='clear'
alias x='exit'
alias wcl='wc -l'
alias l1='ls -1 "$@"'
alias ll='ls -l "$@"'
alias la='ls -altr "$@"'
alias l='ls -ltr "$@"'
alias ml='m_ls -ltr... (5 Replies)
First month learning about the Linux terminal and it has been a challenge yet fun so far. We're learning by using a gameshell. I'm trying to display a certain line ( only allowed 1 command ) from a file only using the head or tail. I'm pretty about this answer:
head -23 history.txt | tail -1... (1 Reply)
Discussion started by: forzatekk
1 Replies
LEARN ABOUT CENTOS
userdb
USERDB(8) Double Precision, Inc. USERDB(8)NAME
userdb - manipulate /etc/courier/userdb
SYNOPSIS
userdb {addr} set {field=value...}
userdb {addr} unset {field...}
userdb {addr} del
userdb {path/addr} [set | unset | del] ...
userdb -f {file} {adr} [set | unset | del] ...
userdb -show {path}
userdb -show {path} {addr}
userdb -show -f {file}
userdb -show -f {file} {addr}
DESCRIPTION
userdb is a convenient script to individually manipulate entries in /etc/courier/userdb. See makeuserdb(8)[1] for a description of its
contents. /etc/courier/userdb can always be edited using any text editor, but userdb is a convenient way to modify this file from another
script.
/etc/courier/userdb can also be a subdirectory, instead of a file. Specify foo/bar/addr to manipulate addr in the file
/etc/courier/userdb/foo/bar. You can also use the -f flag: -f /etc/courier/userdb/foo/bar is equivalent. Use whatever form makes the most
sense to you.
/etc/courier/userdb must not have any group or world permissions. That's because its contents may include system passwords (depending upon
the application which uses this virtual user account database).
Each line in /etc/courier/userdb takes following form:
addr specifies a unique virtual address. It is followed by a single tab character, then a list of field=value pairs, separated by vertical
slash characters. See makeuserdb(8)[1] for field definitions.
A text editor can be used to add blank lines or comments in /etc/courier/userdb. Any blank lines or comments are ignored by the userdb
script.
The names of the actual fields, and their contents, are defined entirely by applications that use the /etc/courier/userdb database, the
userdb command just adds or removes arbitrary fields.
For example:
userdb default/info set mail=/home/mail/info
This command accesses the address "info" in /etc/courier/userdb/default.
If the second argument to userdb is "set", the remaining arguments are taken as field=value pairs, which are added to the record for addr.
If there is no record for addr, a new record will be appended to the file. If addr exists, any existing values of any specified fields are
removed. If =value is missing, userdb stops and prompts for it. This is useful if you're setting a password field, where you do not want to
specify the password on the command line, which can be seen by the ps(1) command. If userdb is being executed by a script, the value can be
provided on standard input.
Use "unset" to delete fields from an existing record. Use "del" to delete all fields in the existing record, plus the record itself.
DISPLAYING /etc/courier/userdb
If the first argument to userdb is -show, userdb displays the contents of /etc/courier/userdb. If /etc/courier/userdb is a subdirectory,
path must refer to a specific file in /etc/courier/userdb. The -f option can be used instead of path in order to specify an arbitrary file.
If addr is not specified, userdb produces a list, on standard output, containing all addresses found in the file, on per line. If addr is
specified, userdb produces a list, on standard output, of all the fields in /etc/courier/userdb for this addr.
REBUILDING /etc/courier/userdb.dat
The actual virtual account/address database is /etc/courier/userdb.dat. This is a binary database file. /etc/courier/userdb is the plain
text version. After running userdb, execute the makeuserdb(8)[1] command to rebuild /etc/courier/userdb.dat for the changes to take effect.
BUGS
addr must be unique. If /etc/courier/userdb is a subdirectory, it's possible to create the same addr in different files in the
subdirectory. This is an error that is not currently detected by userdb, however the subsequent makeuserdb(8)[1] command will fail with an
error message.
FILES
/etc/courier/userdb - plain text file, or directory of plain text files
.lock.filename - lock file for filename
.tmp.filename - temporary file used to create new contents of filename
SEE ALSO makeuserdb(8)[1], userdbpw(8)[2]
NOTES
1. makeuserdb(8)
makeuserdb.html
2. userdbpw(8)
userdbpw.html
Double Precision, Inc. 08/23/2008 USERDB(8)