07-31-2008
Worked!
Super fantastic! Totally worked! Thanks for the help.
Thanx,
Matt
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
for i in `find . -name "*.BEFORE_DISASTER_RECOVERY"`;do dir_name=`dirname $i`;file_name=`basename $i`;cd $dir_name;mv $file_name (STUCK HERE) ;pwd;cd $BASE_DIR;done
Okay, so I was able to get to this point. As you can see, I have a small for loop that searches for any files with the string... (5 Replies)
Discussion started by: cbo0485
5 Replies
2. Shell Programming and Scripting
Hello All,
I am trying to remove all tabspaces and all blankspaces from my file using sed & awk, but not getting proper code. Please help me out.
My file is like this (<b> means one blank space, <t> means one tab space)-
$ cat file
NARESH<b><b><b>KUMAR<t><t>PRADHAN... (3 Replies)
Discussion started by: NARESH1302
3 Replies
3. Shell Programming and Scripting
Hi there,
I don't understand the following behavior:
toto:~$ for word in un "deux trois"; do echo $word; done
un
deux trois
toto:~$ sentence='un "deux trois"'
toto:~$ for word in $sentence; do echo $word; done
un
"deux
trois"
toto:~$ sentence="un 'deux trois'"
toto:~$ for word in... (10 Replies)
Discussion started by: chebarbudo
10 Replies
4. Shell Programming and Scripting
Dear All,
i facing problem to use string having spaces in for loop..
file used for FOR LOOP
command.txt
rpm -t -v ttm -D -r RJLL -h YELP
rpm -t -v ttm -D -r RJLL -h ERRT
rpm -t -v ttm -D -r RJLL -h TYYE
rpm -t -v ttm -D -r RJLL -h POOL
CODE using for execute above command... (3 Replies)
Discussion started by: arvindng
3 Replies
5. Shell Programming and Scripting
Is this possible?
I have a for loop in a shell script reading a list, but I want each line to be a loop, not each thing with a space.
Here is the example:
HOSTLIST="\
1.2.3.4 serverA
1.2.3.5 serverB"
for NBUHOST in `echo $HOSTLIST`
do
ssh ${SERVERNAME} "echo "${NBUHOST}"... (3 Replies)
Discussion started by: LordJezoX
3 Replies
6. Shell Programming and Scripting
Hi Guys,
I'm trying to find all files with a particular extension and then loop some actions. The problem is that if the files have spaces in their names I get end up being each word as a separate result rather than the entire file.
ext=".txt"
out=".rtf"
for i in $( find "$1" -name "*$ext" );... (9 Replies)
Discussion started by: imonkey
9 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I've been tangoing with this one for a couple of days now and I'm still not making any progress.
Basically I'm trying to match three numbers in a string from a text file with matching numbers in a jpeg, and then copying the results to another folder.
Data looks like this:
Model:... (4 Replies)
Discussion started by: faceonline
4 Replies
8. Shell Programming and Scripting
Hello ALL,
need a BASH script who find file and send email with attachment.
I have 50 folders without sub directories in each generated files of different sizes but with a similar name Rp01.txt Rp02.txt Rp03.txt ...etc. Each directors bound by mail group, I need a script that goes as... (1 Reply)
Discussion started by: penchev
1 Replies
9. Shell Programming and Scripting
I have a folder with files and I have to process them in a loop. However the filenames have space characters, so the list get split.
$ touch "File Number_1"
$ touch "File Number_2"
$ ls "/tmp/File Number"_*
/tmp/File Number_1 /tmp/File Number_2
I tried following (sorry for using the... (3 Replies)
Discussion started by: Wernfried
3 Replies
10. Shell Programming and Scripting
Hello,
I wrote a simple script, that basically wait for a *.dat-file in a certain folder, which is always a zipped file and extracts it.
It worked before and i changed nothing in the script, but since last week i have the problem, that it doesnt extract files containing a space. How do i make... (4 Replies)
Discussion started by: blend_in
4 Replies
LEARN ABOUT DEBIAN
superiotool
SUPERIOTOOL(8) System Manager's Manual SUPERIOTOOL(8)
NAME
superiotool - Super I/O detection tool
SYNOPSIS
superiotool [-delVvh]
DESCRIPTION
superiotool is a GPL'd user-space utility which can
* detect which Super I/O chip is soldered onto your mainboard,
* at which configuration port it's located (usually 0x2e or 0x4e), and
* dump all register contents of the Super I/O chip, together with the
default values as per datasheet (to make comparing the values easy).
It is mainly used for coreboot development purposes (see coreboot.org for details on coreboot), but it may also be useful for other things.
The list of supported Super I/O chips is available at http://coreboot.org/Superiotool#Supported_devices, but it can also be viewed by run-
ning superiotool -l.
OPTIONS
If no command line option is specified, superiotool merely tries to detect the Super I/O chip. You must use the -d option to dump the
Super I/O register contents.
-d, --dump
Dump Super I/O registers (if the Super I/O chip is detected and superiotool supports the --dump option for this chip). The output
will look something like this:
$ superiotool -d
Found SMSC FDC37N769 (id=0x28, rev=0x01) at 0x3f0
Register dump:
idx 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11...
val 20 90 80 f4 00 00 ff 00 00 00 40 00 0e 28 01 00 00 00...
def 28 9c 88 70 00 00 ff 00 00 00 00 00 02 28 NA 00 00 80...
The idx fields contain the register numbers/indexes of the Super I/O, the val fields contain the contents of the respective register
as read from the Super I/O, and the def fields contain the default values for the respective register, as specified in the
datasheet.
The numbers in the output are all in hex format, and some special values may also occur: NA stands for not available (i.e., the
datasheet doesn't specify a default value for the respective register), RR means reserved (the datasheet explicitly marks this reg-
ister as reserved), and MM means misc, which can mean several things. It's recommended to consult the datasheet for detailed infor-
mation about the MM fields.
-e, --extra-dump
Dump extra secondary register contents too, if available. Only in combination with the --dump option. This option will, for
instance, dump the environmental controller (EC) configuration registers for the ITE IT8716F chip. The format is similar to the out-
put of the --dump option.
-l, --list-supported
List all Super I/O chips recognized by superiotool. The phrase (dump available) following a chip name indicates that superiotool
supports the --dump option for this chip.
-V, --verbose
Enable verbose mode. This option can be used together with the -d option.
The verbose output will not only list for which type of Super I/O the tool is scanning, but also at which configuration port it's
probing, and which Super I/O initialization sequence is used. If no Super I/O was detected in a probing run, the returned output
will be shown, as it may be useful for figuring out which (currently unrecognized) Super I/O chip this may be.
-v, --version
Show version information and exit.
-h, --help
Show a help text and exit.
BUGS
Please report any bugs at http://tracker.coreboot.org/trac/coreboot/newticket or on the coreboot mailing list (http://coreboot.org/Mail-
inglist).
AUTHORS
Please see the individual source code files and/or the README file.
LICENCE
superiotool is covered by the GNU General Public License (GPL), either version 2 of the License, or (at your option) any later version.
SEE ALSO
sensors-detect(8)
January 18, 2008 SUPERIOTOOL(8)