Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
script outputting cant find anything wrong with the script either... :
#!/bin/sh
#count execution script
time=0
while
do
if
then
time=`expr $time + 1`
if
then
echo "The current tick is 100"
fi
fi (2 Replies)
hi all here is a very simple question.. i want to count the number of columns using awk..my file looks like this:
1,2
1,2
1,2
1,2
1,2
1,2
1,2
1,2
i want to count number of columns and i so far i have:
awk 'BEGIN {IFS=","} END {print NF}' data > data1
i am getting 1... (3 Replies)
Hello,
I am new to shell scripting and I need your help.
I have found similar scripts in the forum but I need further assistance.
I am building a script to use hourly in cron to mailx me if the number of files in a path is less than e.g 100
I have started with the following:
#!/bin/sh... (2 Replies)
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
I am trying to remove lines in a variable(nidlist) that exceed a certain charecter count(in this case 7).
I am trying to incorparate the function that removes the lines that exceed 7 into this piece of code
nidlist=$(print $nidlist |tr ';' '\n' | sort | uniq | tr '\n' ';')
Thank... (4 Replies)
So my program is not working and I keep changing it to figure out why. So I have two questions, can I do tracing similar to bash, and also what is wrong with this.
The idea is simple, I want to count "word" lengths, with the loose definition of word not being a space, tab, or newline. Here is... (11 Replies)
Discussion started by: Riker1204
11 Replies
LEARN ABOUT NETBSD
fdformat
FDFORMAT(1) BSD General Commands Manual FDFORMAT(1)NAME
fdformat -- format a floppy diskette
SYNOPSIS
fdformat [-f device] [-t type] [-n] [-B nbps] [-S nspt] [-T ntrk] [-C ncyl] [-P stepspercyl] [-G gaplen] [-F fillbyte] [-X xfer_rate]
[-I interleave]
DESCRIPTION
The fdformat utility formats a floppy diskette. With no arguments, it formats the default floppy device with the default density parameters
(as provided by the floppy diskette device driver).
As the each track of the floppy diskette is formatted, it is read to verify the format was successful.
The fdformat utility does not create a filesystem of any kind. Use tools like newfs(8), newfs_msdos(8), or mformat(1) (part of the
pkgsrc/sysutils/mtools package) depending on what filesystem type you want to use on the floppy disk to do so.
Available command-line flags are:
-f device
Format the floppy using device instead of the default /dev/rfd0a.
-t type
Format the floppy using parameters for the diskette named type in /etc/floppytab instead of the device default parameters.
-n Do not verify each track as it is read.
-B nbps
Set the number of bytes per sector for the formatted diskette.
-S nspt
Set the number of sectors per track for the formatted diskette.
-T ntrk
Set the number of tracks (heads) per cylinder for the formatted diskette.
-C ncyl
Set the number of cylinders for the formatted diskette.
-P stepspercyl
Set the number of motor steps per cylinder for the formatted diskette.
-G gaplen
Set the sector gap length for the formatted diskette.
-F fillbyte
Set the fill byte for the formatted diskette.
-X xfer_rate
Set the bit transfer rate for the formatted diskette.
-I interleave
Set the interleave factor for the formatted diskette.
SEE ALSO fdc(4) (amiga, i386 and sparc ports)
HISTORY
The fdformat utility appeared in NetBSD 1.3.
BUGS
Some floppy drive units have physical diskette format sensors which automatically select a diskette density for reading. Such drives can
format at alternate densities, but they cannot successfully verify the formatted diskette except at the diskette's normal density.
BSD July 22, 2006 BSD