There are two ways:
First method.
1. Open the text file: vi filename.dat
2. :1,$ s/.*keywordsofthelines.*//g --> from first line(1) to the last line($), substract all lines contain the keyword
3. :wq -->write and save
4. sort filename | uniq > t --> sort it and pipe to uniq and save it into temporary t
5. mv t filename --> move all the data from tempoprary t to the file.
Second.
1. Open the text file in vi: vi filename.dat
2.Delete all the start and bottom rubbish stuff. go to the line and type dd
3. :wq
4. grep -F "recalled" filename > outfile
tips from Kerri Morgan
Thursday, June 18, 2009
Wednesday, June 17, 2009
Marsyas installation
1. Install cmake (version 2.6 and above)
2. $cd marsyas-0.1.19
3. mkdir build
4.cd build
5.~/cmake-2.6.2-Linux-i386/bin/ccmake ../src/
6.Edit cmake compatibility if required
7.On the libmad (make sure MAD library stored)
8. configure and generate
9.at build -> $ make
10.at build ->$ make install
11.at build ->$make test
12. $ cd bin
13. use all marsyas commands (pitchextract,bextract) here
For more info:
http://opihi.cs.uvic.ca/NormCutAudio/pdf/ISMIR2006_Tutorial.pdf
http://marsyas.sness.net/docs/manual/marsyas-user/Available-tools.html#Available-tools
using marsyas:
1) creating
ls /home/amiza/song/Rock.wav > rock.mf
2) bextract -sv /home/amiza/song/rock -w rock.arff -p rock.mpl -cl GS
2. $cd marsyas-0.1.19
3. mkdir build
4.cd build
5.~/cmake-2.6.2-Linux-i386/bin/ccmake ../src/
6.Edit cmake compatibility if required
7.On the libmad (make sure MAD library stored)
8. configure and generate
9.at build -> $ make
10.at build ->$ make install
11.at build ->$make test
12. $ cd bin
13. use all marsyas commands (pitchextract,bextract) here
For more info:
http://opihi.cs.uvic.ca/NormCutAudio/pdf/ISMIR2006_Tutorial.pdf
http://marsyas.sness.net/docs/manual/marsyas-user/Available-tools.html#Available-tools
using marsyas:
1) creating
ls /home/amiza/song/Rock.wav > rock.mf
2) bextract -sv /home/amiza/song/rock -w rock.arff -p rock.mpl -cl GS
Installing cmake on Linux
(source: www.kdedevelopers.org/node/3754)
$wget http://www.cmake.org/files/v2.6/cmake-2.6.2-Linux-i386.tar.gz
$tar -zxvf cmake-2.6.2-Linux-i386.tar.gz
then use it:
cd myprojectdirectory
mkdir build
cd build
~/cmake-2.6.2-Linux-i386/bin/cmake ..
* for marsyas use
~/cmake-2.6.2-Linux-i386/bin/ccmake ../src/
$wget http://www.cmake.org/files/v2.6/cmake-2.6.2-Linux-i386.tar.gz
$tar -zxvf cmake-2.6.2-Linux-i386.tar.gz
then use it:
cd myprojectdirectory
mkdir build
cd build
~/cmake-2.6.2-Linux-i386/bin/cmake ..
* for marsyas use
~/cmake-2.6.2-Linux-i386/bin/ccmake ../src/
Subscribe to:
Posts (Atom)