11-29-2011
Dear ygemici,
Can you explain what awk is doing.
Thanks in Advance.
Regards,
Ajay
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a file like this...
<o t="Batch" id="8410" p="/" g="32">
<a n="name">
<v s="DBBA1MM"/>
</a>
<a n="owner">
<v r="/Administrator"/>
</a>
<a n="rights">
<v s="95"/>
</a>
<a n="debugLevel">
<v s="3"/>
</a>
<a n="avsStoreLoc">
<v... (8 Replies)
Discussion started by: kesu2k
8 Replies
2. Shell Programming and Scripting
Hi,
I need to generate the text name dynamically in for loop,
ex,
VAR_COPY_FILE1= file path 1
VAR_COPY_FILE2= file path 2
VAR_COPY_FILE3= file path 3
for i in 1 2 3
do
if
then
"do some process here"
fi
done (3 Replies)
Discussion started by: msubash26
3 Replies
3. Shell Programming and Scripting
Okay -- I hope I ask this correctly.
I'm working on my little shell script to write vendor names and aliases to files from user input. If a user choose to add to a file, he can do that as well. I'm using a select loop for this function to list all the possible files the user can choose from.... (7 Replies)
Discussion started by: Straitsfan
7 Replies
4. UNIX for Dummies Questions & Answers
Right now, my code is:
s/Secondary Ins./Secondary Ins.\
1/g
It's adding a 1 as soon as it finds Secondary Ins.
Primary Ins.: MEDICARE B DMERC Secondary Ins.
1: CONTINENTAL LIFE INS
What I really want to achieve is having a 1 added on the next line that contain "Secondary Ins." It... (4 Replies)
Discussion started by: newbeee
4 Replies
5. Shell Programming and Scripting
Hello, could you please help with this one. I have an input file like this:
123,4567,89000
123456789,9876543,12
and for the output I need strings to be with the fixed length, let's say 15, and if the string is -lt 15 to be populated with blanks at the end until it reach 15, like this:
123 ,4567... (1 Reply)
Discussion started by: apenkov
1 Replies
6. Shell Programming and Scripting
Hi,
I need to replace and append a string in a text if grep is true. For eg:
grep ABC test.txt | grep -v '\.$' | awk {'print $4'} | sed "s/ ?
How do I replace all instances of "print $4" using sed with another sring? Eg of the string returned will be,
lx123
web222
xyz
Want to... (8 Replies)
Discussion started by: vchee
8 Replies
7. Shell Programming and Scripting
Hi Team!!
Please can anyone tell me why the following line does not work properly?
str3+=$str2
it seems that str3 variable does not keep its value in order to be concatenated in the next iteration! Thus when i print the result of the line above it returns the str2 value
What i want to do is to... (8 Replies)
Discussion started by: paladinaeon
8 Replies
8. Shell Programming and Scripting
Hi All,
I'm trying to insert a string into a file at a specific location.
I'd like to add a string after the parent::__construct(); in my file.
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Controller extends CI_Controller {
function... (6 Replies)
Discussion started by: jjkilpatrick
6 Replies
9. Shell Programming and Scripting
How to pre-append a variable string to each line in a file contains both single and double quotes?
The variable string has no quotes in it.
thank you very much.
:confused: (8 Replies)
Discussion started by: dtdt
8 Replies
10. Shell Programming and Scripting
I was using below script to grep one file. I need to append the output using prefix
Data of all-Vms-1.txt
server-1 frame-1 LUN001
server-2 frame-1 LUN002
Data of all-vm-unix.txt
server-1 24
server-2 50
Script used
while read -r g h ;
do
cat all-Vms-1.txt |grep... (5 Replies)
Discussion started by: ranjancom2000
5 Replies
bsnes(6) Games Manual bsnes(6)
NAME
bsnes - Accurate SNES/Super Famicom emulator
SYNOPSIS
bsnes <ROM location>
OPTIONS
<ROM location> -- from the command line, you can supply the name of a ROM file as an argument to start playing that ROM
KEYBOARD SHORTCUTS
F11 -- toggle fullscreen mode
DESCRIPTION
bsnes is a Super Nintendo / Super Famicom emulator that strives to provide the most faithful hardware emulation possible. It focuses on
accuracy and clean code, rather than speed and special features. It is meant as a reference emulator to document how the underlying hard-
ware works. It is thus very useful for development and research. And while it can be used for general purpose gaming, it will require sig-
nificantly more powerful hardware than a typical emulator. Although not as polished as the SNES emulation (yet), there is also support for
NES, Gameboy, Gameboy Color and Gameboy Advance games.
Supported Filetypes
SFC: SNES cartridge -- ROM image.
BS: Satellaview BS-X flash cartridge -- EEPROM image.
ST: Sufami Turbo cartridge -- ROM image.
SRM, PSR: non-volatile memory, often used to save game data -- (P)SRAM image.
GB/GBC/GBA: Gameboy (Color/Advance) cartridge -- ROM image.
NES/FC: NES cartridge -- ROM image.
Note that bsnes can not open ROMs with different filename extensions or with copier headers.
Known Limitations
Satellaview BS-X emulation: this hardware is only partially supported. This is mostly because the satellite network it used (St. GIGA) has
been shut down. Access to this network would be required to properly reverse engineer much of the hardware. Working around this would
require game-specific hacks, which are contrary to the design goals of this emulator. As a result, most BS-X software will not function
correctly.
Netplay: internet multiplay is not currently supported nor planned.
PROFILES
bsnes comes with three profiles, where "accuracy" and "compatibility" are focused on accuracy in emulating the SNES (compatibility makes
minor tradeoffs in favor of speed) and "performance" is focused on using less resources. Which profile to use can be set with:
# update-alternatives --config bsnes-bin
SYSTEM FOLDERS
bsnes does not only need ROMs containing games, but also data that was originally stored in chips belonging to the consoles. The files con-
taining this data are organized in system folders. The system folders contain system info and firmware/BIOS images and are located in
"$HOME/.config/bsnes". For example, to play GBA games, a GBA bios image is required. The file has to be named "bios.rom" and placed inside
the "Game Boy Advance.sys" folder in "$HOME/.config/bsnes". The checksum of the file has to match the one given in "/usr/share/bsnes/Game
Boy Advance.sys/manifest.xml".
SEE ALSO
bsnes-purify(6), laevateinn(6)
MORE INFO
Website: http://byuu.org/bsnes/
BSNES AUTHOR
byuu
MAN PAGE AUTHORS
Brandon Barnes, Tobias Hansen
August 5, 2011 bsnes(6)