10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I wish to remove any word coming after searched string found in a word.
source*.txt
#!bin/bash
#test1
http://www.aa.bb.cc http://www.xx.yy http://www.11.22.44
#test2
http://www.11.rr.cd http://www.01.yy http://www.yy.22.tt
#test3
http://www.22.qq.fc http://www.0x.yy... (15 Replies)
Discussion started by: baris35
15 Replies
2. Post Here to Contact Site Administrators and Moderators
Hi Sir,
Need your help in removing the following words from the posts .
These are confidential info posted by mistake and our organization is doing an audit on this.
Could you kindly remove as per below.
https://www.unix.com/shell-programming-and-scripting/197017-perl-help.html
... (4 Replies)
Discussion started by: ptappeta
4 Replies
3. Shell Programming and Scripting
Hi,
I have a file which looks like this
id integer,
name string,
create_dt date,
I want to remove all words that are present before the character ,
My output should be
id,
name,
create_dt,
Thanks
wah (2 Replies)
Discussion started by: wahi80
2 Replies
4. Shell Programming and Scripting
How can I use sed or any utility to remove any word that begins with TRS-, I have tried sed 's/ERA.*//g' but seems not to be working
Input:
23 TRS-458-9 345 235
45 TRS-42-5 423 000
76 300 234
Output:
23 345 235
45 423 000
76 300 234 (5 Replies)
Discussion started by: aydj
5 Replies
5. Shell Programming and Scripting
Hello
I have a string that may or may not have 4 dots.
The string is actualy a file within a folder, where multiple files are located.
Files may look like:
# ls *
creds:
192.168.10.110 someserver
shares:
192.168.10.110.Public someserver.sharefolder
#
I want to fill 2 variables,... (1 Reply)
Discussion started by: sea
1 Replies
6. Shell Programming and Scripting
Hi All,
I want to remove the first word "cn=" from the below details. Only I want the number like 171345,174144...
cn=171345
cn=174144
How can I achieve this.
Please suggest.
Thanks-
P (6 Replies)
Discussion started by: pokhraj_d
6 Replies
7. Shell Programming and Scripting
var=abc_cde_def_ghi_678.txt
Expected output:
cde_def_ghi_678.txt
Is there a better way to achive this other than cut command?
Basically, I need to remove the 1st word and _ from the string.
Thanks. (1 Reply)
Discussion started by: vedanta
1 Replies
8. Shell Programming and Scripting
Hi All,
If my file is:
Wed Sep 9 22:45:14 EDT 2009
sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp>
This is log file generated from transfer...
sftp> sftp> sftp> sftp> Files placed properly....
sftp> sftp> sftp>
How can I remove "sftp>" word from this... (4 Replies)
Discussion started by: darshakraut
4 Replies
9. UNIX for Dummies Questions & Answers
I try to write a small script that looks in the file tt for all the words that start with m in lowercase and in which there is no uppercase.
#!/bin/sh
grep ^m\.*\.\.* tt (4 Replies)
Discussion started by: cfg
4 Replies
10. Shell Programming and Scripting
Hi,
i have a question about to remove first word from a sentence.
my script;
#!/usr/bin/perl
$msgtxt = "this is a test script";
my @ap_txtMsg = split(/ +/, trim_data($msgtxt));
$ap_msgtxt = splice (@ap_txtMsg, 0, 1);
print $ap_msgtxt;
but the output is first word that i... (1 Reply)
Discussion started by: malaysoul
1 Replies
sane-u12(5) SANE Scanner Access Now Easy sane-u12(5)
NAME
sane-u12 - SANE backend for Plustek USB flatbed scanners, based on older parport designs
DESCRIPTION
The sane-u12 library implements a SANE (Scanner Access Now Easy) backend that provides access to USB flatbed scanners based on Plusteks'
ASIC 98003 (parallel-port ASIC) and a GeneSys Logics' USB-parport bridge chip.
SUPPORTED DEVICES
The backend is able to support some early Plustek USB scanner based their old parport design around the ASIC 98003 and other rebadged Plus-
tek devices. The following tables will give you a short overview.
If your Plustek scanner has another Product ID, then the device is NOT supported by this backend.
Vendor Plustek - ID: 0x07B3
----------------------------------------------------------
Model: Vendor-ID: Product-ID:
----------------------------------------------------------
OpticPro U12 0x07B3 0x0001
OpticPro U1212 0x07B3 0x0001
OpticPro UT12 0x07B3 0x0001
Vendor KYE/Genius
--------------------------------------------------------
USB Model: Vendor-ID: Product-ID:
--------------------------------------------------------
ColorPage Vivid III USB 0x07B3 0x0001
ColorPage HR6 V1 0x0458 0x2004
CONFIGURATION
To use your scanner with this backend, you need at least two entries in the configuration file /etc/sane.d/u12.conf
[usb] vendor-id product-id
device /dev/usbscanner
[usb] tells the backend, that the following devicename (here /dev/usbscanner) has to be interpreted as USB scanner device. If vendor- and
product-id has not been specified, the backend tries to detect this by its own. If device is set to auto then the next matching device is
used.
The Options:
option warmup t
t specifies the warmup period in seconds
option lampOff t
t is the time in seconds for switching off the lamps in standby mode
option lOffonEnd b
b specifies the behaviour when closing the backend, 1 --> switch lamps off, 0 --> do not change lamp status
See the u12.conf file for examples.
Note:
You have to make sure, that the USB subsystem is loaded correctly and you have access to the device-node. For more details see sane-usb (5)
manpage. You might use sane-find-scanner to check that you have access to your device.
Note:
If there's no configuration file, the backend defaults to device auto
FILES
/etc/sane.d/u12.conf
The backend configuration file
/usr/lib64/sane/libsane-u12.a
The static library implementing this backend.
/usr/lib64/sane/libsane-u12.so
The shared library implementing this backend (present on systems that support dynamic loading).
ENVIRONMENT
SANE_CONFIG_DIR
This environment variable specifies the list of directories that may contain the configuration file. Under UNIX, the directories
are separated by a colon (`:'), under OS/2, they are separated by a semi-colon (`;'). If this variable is not set, the configura-
tion file is searched in two default directories: first, the current working directory (".") and then in /etc/sane.d. If the value
of the environment variable ends with the directory separator character, then the default directories are searched after the explic-
itly specified directories. For example, setting SANE_CONFIG_DIR to "/tmp/config:" would result in directories "tmp/config", ".",
and "/etc/sane.d" being searched (in this order).
SANE_DEBUG_U12
If the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. Higher
debug levels increase the verbosity of the output.
Example: export SANE_DEBUG_U12=10
SEE ALSO
sane(7), sane-usb(5), sane-plustek(5),
/usr/share/doc/packages/sane-backends/u12/U12.changes
http://www.gjaeger.de/scanner/u12/
CONTACT AND BUG-REPORTS
Please send any information and bug-reports to:
SANE Mailing List
Additional info and hints can be obtained from our
Mailing-List archive at:
http://www.sane-project.org/mailing-lists.html
or directly from the projects' homepage at:
http://www.gjaeger.de/scanner/u12/
To obtain debug messages from the backend, please set the environment-variable SANE_DEBUG_U12 before calling your favorite scan-frontend
(i.e. xscanimage).
i.e.: export SANE_DEBUG_U12=20 ; xscanimage
The value controls the verbosity of the backend.
KNOWN BUGS & RESTRICTIONS
* The driver is in alpha state, so please don't expect too much!!!
* When using libusb, it might be, that the backend hangs. In that case, reconnect the scanner.
14 Jul 2008 sane-u12(5)