Before
After
Need to do the following changes;
Change previous row field (substr$0,45,4)-1
Change previous row field (substr$0,72,5)+2
Change actual row field (substr$0,40,4)+1
Change actual row field (substr$0,49,1)-1
Change actual row field (substr$0,62,5)+12
in shifts we used to run a script where in we need to choose from different options. for example the first part would go like this:
========
menu
========
1)blah
2)blah blah
3)blah blah blah
you have chosen:
then after that a series of multiple choice so on and so forth...what i would... (4 Replies)
Hi,
I'm a beginner in scripting and I recently wrote a bash script that would've worked fine until I realized it needed to be written in csh. Could someone please show me how to correctly change the syntax from bash to csh in this script? Any help will be greatly appreciated. I can provide more... (4 Replies)
I have in file these words:
@fraza1 = rw
@fraza2 = r
@fraza3 = r
@fraza4 = r
@fraza5 = r
@fraza1 = r
@fraza6 = r
@fraza7 = r
@fraza2 = r
@fraza8 = r
@fraza9 = r
...
I would like so that:
,rw,@fraza1
,r,@fraza2 (2 Replies)
I think there is no problem to use any macro in a new macro definishion, but I have a problem with that.
I can not understand why?
I have a *.mak file that inludes file with many definitions and rules.
##############################################
include dstndflt.mak
...
One of the... (2 Replies)
We currently use TUN as an emulation program to connect to various unix applications. I am looking at moving to PuTTY release 0.60 but am getting stuck as one application runs a macro at startup to run a program.
My question is, can you run a macro from PuTTY?
Any pointers would be great. (0 Replies)
Hi,
I am using Send Keys to connect to UNIX server and invoke a script .
Is there an alternate way to connect to UNIX server using Excel macro and invoke a UNIX Shell script?
Anu (2 Replies)
Hi all,
I need a script to do some date/time conversion. It should take as an input a particular time. It should then generates a series of offsets, in both hour:minute form and number of milliseconds elapsed.
For 03:00, for example, it should give back 04:02:07 (3727000ms*) 05:04:14... (2 Replies)
Original script written on CentOS 6.3 with GNU bash 4.1.2
Destination system is Solaris 9 with GNU bash 2.05 (not changeable by me)
I have a script written on the linux side but now we need to provide a version to another site that "doesn't like linux". I've been going through changing the ] or... (13 Replies)
I have the following script set up and working properly in bash. It basically copies a set of lines which match "AS1100002" from one file and replaces the same lines in another file.
awk -vN=AS1100002* 'NR==FNR { if($1 ~ N)K=$0; next }
{ if($1 in K) $0=K; print }' $datadir/file1... (7 Replies)
Discussion started by: ncwxpanther
7 Replies
LEARN ABOUT NETBSD
lsusb
lsusb(8) Linux USB Utilities lsusb(8)NAME
lsusb - list USB devices
SYNOPSIS
lsusb [ options ]
DESCRIPTION
lsusb is a utility for displaying information about USB buses in the system and the devices connected to them.
OPTIONS -v, --verbose
Tells lsusb to be verbose and display detailed information about the devices shown. This includes configuration descriptors for the
device's current speed. Class descriptors will be shown, when available, for USB device classes including hub, audio, HID, communi-
cations, and chipcard.
-s [[bus]:][devnum]
Show only devices in specified bus and/or devnum. Both ID's are given in decimal and may be omitted.
-d [vendor]:[product]
Show only devices with the specified vendor and product ID. Both ID's are given in hexadecimal.
-D device
Do not scan the /dev/bus/usb directory, instead display only information about the device whose device file is given. The device
file should be something like /dev/bus/usb/001/001. This option displays detailed information like the v option; you must be root
to do this.
-t Tells lsusb to dump the physical USB device hierarchy as a tree. This overrides the v option.
-V, --version
Print version information on standard output, then exit successfully.
RETURN VALUE
If the specified device is not found, a non-zero exit code is returned.
FILES
/var/lib/usbutils/usb.ids
A list of all known USB ID's (vendors, products, classes, subclasses and protocols).
SEE ALSO lspci(8), usbview(8).
AUTHOR
Thomas Sailer, <sailer@ife.ee.ethz.ch>.
usbutils-007 6 May 2009 lsusb(8)