so i have been trying to learn how to manipulate text on my own and have gotten stumped...
let's say i have a text file that says (highly simplified):
people ordinary
How would swap the order of the words..
I know i need to use sed and some kind of back reference but cannot make it... (2 Replies)
If I have string { I_love_shell_scripts}
anyone knows how to have output {stpircs_llehs_evol_I}
by using shell and perl ?I know in perl, there is reverse() funcation, but
can it be done by not using reverse()? (3 Replies)
I have a text
"abc def ghi"
and I want to get it as
"def abc ghi"
I am using this
echo "abc def ghi" | sed 's/\(*\)\(*\)/\2\1/'
But I am not able to get the output, could anyone help me.
Thanks (9 Replies)
I have files in a folder like ..
citi11082006_1.trn
citi11082006_2.trn
citi11082006_3.trn
...
...
...
citi11082006_13.trn
.,...
citi11082006_nn.trn
Each file will have one string inside and I am builting a master string based out the string in the sub files by merging all into one by... (6 Replies)
Im trying to develop a shell script that will change the content order of the file.
For example I have a file that says
a
b
c
d
I want to change this to be
d
c
b
a
Im trying to use sed to this by reading the file and then inserting each line at the top
#!/usr/bin/ksh
... (3 Replies)
Hi ,
I want to change the order of a string using sed command . Is it possible ?
$echo "abc123xyz" | sed 's/\()*\) \(*\)/\2\1/'
abc123xyz
$ echo "abc123xyz" |sed 's/\()*\) \(*\) \()*\)/\2\1\3/'
abc123xyz
I want to change the string ,
abc123xyz as
xyz123abc .
Is it... (5 Replies)
Hi -
I have a file with lots of lines in that I need to order based on the number of commas!
e.g the file looks something like :-
cn=john,cn=users,cn=uk,dc=dot,dc=com
cn=john,cn=users,dc=com
cn=users,cn=groups,dc=com
cn=john,cn=admins,cn=users,cn=uk,dc=dot,dc=com... (4 Replies)
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Hello.
I would like to write a bash function which would return "true" if the search succeed else return anything else.
something like
if ] ; then
exit 1
fi
function my_funct () {
find first occurrence $2 in $1
if not found return "false"
from that position,... (6 Replies)
Discussion started by: jcdole
6 Replies
LEARN ABOUT DEBIAN
wildmidi_openbuffer
WildMidi_OpenBuffer(3) WildMidi Programmer's Manual WildMidi_OpenBuffer(3)NAME
WildMidi_OpenBuffer - Open a midi file buffer for processing
LIBRARY
libWildMidi
SYNOPSIS
#include <wildmidi_lib.h>
midi *WildMidi_OpenBuffer (unsigned char *midibuffer, unsigned long int size)
DESCRIPTION
Open a midi file, that you have buffered in memory, for processing.
midibuffer
The memory location of the buffered midi file. This buffer needs to be in standard midi file format. Once this function is called
any changes to the buffer will have no effect.
size This is the size of the midi file in bytes that is stored in memory.
RETURN VALUE
Returns NULL on error, otherwise returns a handle for the midi buffer opened.
SEE ALSO WildMidi_GetString(3), WildMidi_Init(3), WildMidi_MasterVolume(3), WildMidi_Open(3), WildMidi_SetOption(3), WildMidi_GetOutput(3), Wild-
Midi_GetInfo(3), WildMidi_FastSeek(3), WildMidi_Close(3), WildMidi_Shutdown(3), wildmidi(1), wildmidi.cfg(5)AUTHOR
Chris Ison <wildcode@users.sourceforge.net>
COPYRIGHT
Copyright (C) Chris Ison 2001-2010
This file is part of WildMIDI.
WildMIDI is free software: you can redistribute and/or modify the player under the terms of the GNU General Public License and you can
redistribute and/or modify the library under the terms of the GNU Lesser General Public License as published by the Free Software Founda-
tion, either version 3 of the licenses, or(at your option) any later version.
WildMIDI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and the GNU Lesser General Public License for more details.
You should have received a copy of the GNU General Public License and the GNU Lesser General Public License along with WildMIDI. If not,
see <http://www.gnu.org/licenses/>.
This manpage is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License. To view a copy of this license, visit
http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, Califor-
nia, 94105, USA.
05 June 2010 WildMidi_OpenBuffer(3)