10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'd like to write up notes in a relatively readable format and then use a shell script to add LaTeX formatting. Specifically, I'm trying to figure out how to add the LaTeX newline character (\\) to the end of lines without \begin{} or \end{} statements
example notes file:
\begin{enumerate}
--... (2 Replies)
Discussion started by: icskittles
2 Replies
2. UNIX for Dummies Questions & Answers
printf "\\" prints a backslash.how we can print multiple backslashes such as "\\\\\\\\\\\\\\\\\\\\".
Thanks (4 Replies)
Discussion started by: pandeesh
4 Replies
3. Programming
Hey, i am having a problem
First, i know java well and i have used C++ on occasion so i thought i would be able to deal with a class where they program in C. unfortunately i have hit some speed bumps that i am having problems.
Here is my problem:
I have a structure cache_t in the sample... (0 Replies)
Discussion started by: zephoid
0 Replies
4. Shell Programming and Scripting
Hi there,
i am struggling with this one, basically i want to replace an existing path string in a file with a new one, but the new one contains slashes which causes problems with "sed", i thought i could change the replacement string into a variable but of course when the variable is evaluated... (4 Replies)
Discussion started by: surfbus78
4 Replies
5. Shell Programming and Scripting
Hi,
I have a requirement where i need to replace 3 backslashes with 2 in the below mentioned string, but i am facing problem with backslashes. However i tried the option below but doesnt work. My input remains a constant as i receive it from my upstream.
Input String= "-rfile... (3 Replies)
Discussion started by: kk_madrid
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Newbie here. I have a file that consists of data that I want to convert to a csv file. For example:
Jul 20 2008 1111 / visit home / BlackBerry8830/4.2.2 Profile/MIDP-2.0 Configuration/CLOC-1.1 VendorID/105
Jul 21 2008 22222 / add friend / BlackBerry8830/4.2.2 Profile/MIDP-2.0... (3 Replies)
Discussion started by: kangaroo
3 Replies
7. UNIX for Dummies Questions & Answers
Using a small script, I automatically generated some text logs. The files ended being undownloadable, unopenable and undeletable. Upon further investigation, the files ended up looking like this:
log\r
log2\r
log3\r
I've tried a few different things, including double slashing before the... (6 Replies)
Discussion started by: shepherdsflock
6 Replies
8. Solaris
I'm not sure where to post this but it's happening on a SunOS 5.8 server so I'll try here.
I've discovered some unexpected behavior when using tr.
For example:
echo a | tr
Z
echo b | tr
a
echo a | tr
B
echo a | tr
B
echo a | tr
A (8 Replies)
Discussion started by: Mike@Work
8 Replies
9. Shell Programming and Scripting
How to echo 4 backslashes more easy ? I can use 16 to echo 4 backslashes.
# echo \\
\
# echo \\\\
\
# echo \\\\\\
\\
# echo \\\\\\\\
\\
# echo \\\\\\\\\\
\\\
# echo \\\\\\\\\\\\
\\\
# echo \\\\\\\\\\\\\\
\\\\ (4 Replies)
Discussion started by: sun-guy
4 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
having read lots of posts about SU I don't quiet understand this :
I'm doing regular backups of my database (u betta do) and therefore use su - username -c "sqlscript special data_base" in a unixscript which is even using cron. (yep!)
Now I need some other script, still with this... (4 Replies)
Discussion started by: nulnul7
4 Replies
devassign(4) Kernel Interfaces Manual devassign(4)
NAME
devassign - device assignment database file for a trusted system
SYNOPSIS
DESCRIPTION
The system supports a single device assignment database that contains entries for local login terminals.
The format of the terminal control database file is identical to other trusted system authentication database files. For more information
on the file format, see authcap(4). The file consists of keyword field identifiers and values for those fields. The keyword identifiers
supported and their use include:
This field specifies a comma separated list of aliases that refer to the same
device defined by the entry. Use of this field avoids the need to replicate device assignment database entries for all
device aliases.
This field specifies the device that is described by the entry.
Device types supported include:
The device is assigned as a local login terminal device.
This field, if specified, contains a comma separated list of user names that
are permitted to use the device for login or the import/export of data. If the list is not present, all users are permitted
to use the device. If the list is present, it is searched for a match by the login program to determine if the user is per-
mitted to use the device.
EXAMPLES
The following is an example of a device assignment database entry for a terminal device assigned as a login device:
WARNINGS
Remote terminals (ptys) should not be added to the or databases. Device name formats treated as ptys by login are:
where x is a letter, and y is a hex number
where x is a letter, and y is a hex number
HP-UX 11i Version 3 is the last release to support
trusted systems functionality.
AUTHOR
was developed by HP.
SEE ALSO
login(1), getdvagent(3), ttys(4), authcap(4), default(4).
TO BE OBSOLETED devassign(4)