11-14-2011
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i currently am using a unix server and NT pc. i have downloaded a ziped file that should explode into 3 seperate unix based files, however when i unzip it using Alading Expander it displays only 1. This exploded version contains all 3 files ( you can scroll down when viewing the file and see the... (1 Reply)
Discussion started by: pixelmonkey
1 Replies
2. UNIX for Dummies Questions & Answers
hi i would like to know whether i can delete a part of a file in C
for eg. if my file contained
1234567890
and i want to delete
456
so that it becomes
1237890
is there a way i can do this.
well, one way i can achieve this is by creating a new file, copy whatever i want, then... (2 Replies)
Discussion started by: sameersbn
2 Replies
3. OS X (Apple)
:(
what is the best way of editing the various .plist files without adding third party files? Or is the easiest way is to add third party applications, which ones? please kept in mind that i am not a programmer.
mike (1 Reply)
Discussion started by: mehow
1 Replies
4. Solaris
I attempted to change the IP of my Solaris 9 box by changing these files:
/etc/hosts
/etc/hostname.dmfe0
And when I rebooted my system, the changes did not come up through the reboots. I have searched high and low and this is how you change the IP address permanently. Can anyone tell me what... (2 Replies)
Discussion started by: bluridge
2 Replies
5. Solaris
hi guys,
We have to implement new local (/etc/default/login) USER security policy on almost 50 stations.
so editing /etc/default/login and /etc/default/passwd will be way too long work.
Can we do the same using some script, I mean editing the above files and putting variables as RETRIES=3, ... (5 Replies)
Discussion started by: Asteroid
5 Replies
6. Shell Programming and Scripting
Is there any command which I can apply from the command line to find and replace a particular text say "00:00:00:00" with "00" from all the files( where ever this text exists) of the current directory? (17 Replies)
Discussion started by: cobroraj
17 Replies
7. Shell Programming and Scripting
Hi All,
I have a folder that contains 100's of files and each file have a similar content like the following format:
((STBJa:200.0,((STBTz:200.0,(STSwe:200.0,(STDUw:200.0,(ST4Bu:200.0,STL2b:200.0):127.0):86.0):80.0):120.0,
STAHr:200.0):134.0):200.0,STuNg:200.0);What I need is to do is add "#1"... (2 Replies)
Discussion started by: Lucky Ali
2 Replies
8. Programming
I am working in C and need a solution for below problem:
I have a binary file, which needs to be edited in such a way no data is loss.
For example i have to insert 3 bytes of data at some position without changing the contents of the file.
if file has data as:... (2 Replies)
Discussion started by: junaid.nehvi
2 Replies
9. Shell Programming and Scripting
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies
10. UNIX for Dummies Questions & Answers
This is a smallpart of my input file.I want to change the ID values of entries having CMW as an entry.
Cont_1.266 . CMW 2958 3269 . - 0 PARENT=t:UM06506T0;ID=UM06506P0;rank=6
Cont_1.266 . CMW 3394 3505 . - 0 ... (3 Replies)
Discussion started by: sasdf
3 Replies
PAP(1) General Commands Manual PAP(1)
NAME
pap, papstatus - client interface to remote printers using Printer Access Protocol
SYNOPSIS
pap [ -c ] [ -e ] [ -p nbpname ] [ -s statusfile ] [ files ]
papstatus [ -p nbpname ]
DESCRIPTION
pap is used to connect and send files to an AppleTalk connected printer using the Apple Printer Access Protocol (PAP). When pap starts
execution, it tries to open a session with the printer using PAP, and then downloads the files to the printer.
If no files are given on the command line, pap begins reading from standard input.
If no printer is specified on the command line, pap looks for a file called .paprc in the current working directory and reads it to obtain
the nbpname of a printer. Blank lines and lines that begin with a `#' are ignored. type and zone default to LaserWriter and the zone of
the local host, respectively.
Note that pap is designed to be useful as a communication filter for sending lpd(8) spooled print jobs to AppleTalk connected printers.
See psf(8) for hints on how to use it this way.
OPTIONS
-c Take cuts. Normally pap tells the printer how long it has been waiting. When -c is specified, pap claims to have been waiting for-
ever.
-e Send any message from the printer to stderr instead of stdout. psf(8) invokes pap with this option.
-p nbpname
Connect to the printer named nbpname and do not consult the .paprc file to find a printer name. See nbp_name(3) for the syntax of
nbpname.
-s statusfile
Update the file called statusfile to contain the most recent status message from the printer. pap gets the status from the printer
when it is waiting for the printer to process input. The statusfile will contain a single line terminated with a newline. This is
useful when pap is invoked by psf(8) within lpd's spool directory.
FILES
.paprc file that contains printer name
SEE ALSO
nbp_name(3), lpd(8), psf(8).
netatalk 1.3 3 Jun 1994 PAP(1)