#! /bin/bash
files=(*.txt)
for ((i=0; i<${#files[@]}; i++)) ; do
file="${files[$i]}"
awk -f f.awk "$file" > "${file}.mod"
done
f.awk is:
{
gsub(/\([^)]*\)/,"&; printf&")
print
}
input.txt:
x=7;
sqrt(x+5*4); sqrt(x*x);
i=3;
a=2+sqrt(8);
Running: awk -f f.awk input.txt gives:
x=7;
sqrt(x+5*4); printf(x+5*4); sqrt(x*x); printf(x*x);
i=3;
a=2+sqrt(8); printf(8);
This wont work for nested parenthesis, like sqrt(4+2*(x+y))
Running: awk -f f.awk input.txt>>output.txt writes it to output file
Dec 6, 2013
Fusion code
Dec 5, 2013
Paraview Client Server model
We can't use the binaries for this model. Paraview has to be compiled on the server.
Following should be installed along.
1. cmake : cross platform build tool. CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment
2. Qt
http://qt-project.org/downloads
QT installation..
Goto INSTALL file in the downloaded unzipped tar file.
Look at the html for embedded Linux
http://qt-project.org/doc/qt-4.8/qt-embedded-install.html
now set the path in (your home directory) ~/.bash_profile
ParaView uses Qt as its GUI library. Qt is required whenever the ParaView client is built.
set qt path>>
export PATH=/home/umunipala/research/sem4/source/qt/qt-everywhere-opensource-src-4.8.5/bin:$PATH
file and source:: give the executables
export QT_QMAKE_EXECUTABLE=/home/umunipala/research/sem4/source/qt/qt-everywhere-opensource-src-4.8.5
Need to set this as environment variable
and run paraview : try qt installation and then set env variables. Then try the following...
/home/umunipala/research/sem4/source/ParaView-v4.0.1-source/CMake is the location to run this command
-----------------------------------------------------------------------------------------------------------------------------------------------------
3.MPI
4.Python
5 Mesa 3d graphics library
http://www.mesa3d.org/download.html
ftp://ftp.freedesktop.org/pub/mesa/9.0.1/
Cmake
There doesn't seem to be a 64 bit. Going to use Linux i386
http://www.cmake.org/cmake/resources/software.html
Installation location : /home/umunipala/research/sem4/source/cmake (binaries)
Source installation location:
/home/umunipala/research/sem4/source/cmake/cmakesource/cmake-2.8.12.1
-- Install configuration: ""
CMake Error at cmake_install.cmake:36 (FILE):
file cannot create directory: /usr/local/doc/cmake-2.8. Maybe need
administrative privileges. :(
Lets try the binary.
Maybe we need to add the bin to the path.
configuration of client with server:
https://www.alcf.anl.gov/user-guides/vis-paraview-data-analytics-cluster
Following should be installed along.
1. cmake : cross platform build tool. CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment
2. Qt
http://qt-project.org/downloads
QT installation..
Goto INSTALL file in the downloaded unzipped tar file.
Look at the html for embedded Linux
http://qt-project.org/doc/qt-4.8/qt-embedded-install.html
cd ~/qt-everywhere-opensource-src-4.8.5 ./configure -embeddedmake
now set the path in (your home directory) ~/.bash_profile
PATH=/usr/local/Trolltech/QtEmbedded-4.8.5/bin:$PATH export PATH
also set cmake path
ParaView uses Qt as its GUI library. Qt is required whenever the ParaView client is built.
set qt path>>
export PATH=/home/umunipala/research/sem4/source/qt/qt-everywhere-opensource-src-4.8.5/bin:$PATH
file and source:: give the executables
export QT_QMAKE_EXECUTABLE=/home/umunipala/research/sem4/source/qt/qt-everywhere-opensource-src-4.8.5
Need to set this as environment variable
and run paraview : try qt installation and then set env variables. Then try the following...
/home/umunipala/research/sem4/source/ParaView-v4.0.1-source/CMake is the location to run this command
- Run ccmake to configure the Makefiles
%
ccmake ../ParaView-v4.0.1-source
-----------------------------------------------------------------------------------------------------------------------------------------------------
3.MPI
4.Python
5 Mesa 3d graphics library
http://www.mesa3d.org/download.html
ftp://ftp.freedesktop.org/pub/mesa/9.0.1/
Cmake
There doesn't seem to be a 64 bit. Going to use Linux i386
http://www.cmake.org/cmake/resources/software.html
Installation location : /home/umunipala/research/sem4/source/cmake (binaries)
Source installation location:
/home/umunipala/research/sem4/source/cmake/cmakesource/cmake-2.8.12.1
steps:
>> ./bootstrap
>> make
>>make install
CMake Error at cmake_install.cmake:36 (FILE):
file cannot create directory: /usr/local/doc/cmake-2.8. Maybe need
administrative privileges. :(
Lets try the binary.
Maybe we need to add the bin to the path.
export PATH=/home/umunipala/research/sem4/source/cmake/cmake-2.8.12.1-Linux-i386/bin:$PATH
configuration of client with server:
https://www.alcf.anl.gov/user-guides/vis-paraview-data-analytics-cluster
Dec 3, 2013
How to reset lost password in Ubuntu / Linux
Power on your Ubuntu computer while holding down the Shift Key on your keyboard. At the boot menu (GRUB) select (Recovery Mode)
Then scroll down to root and press Enter.
Then scroll down to root and press Enter.
Next, run the commands below to remount root
mount -rw -o remount /
run the commands below to create / change your password.
passwd username
Exit and login with your new password
Subscribe to:
Posts (Atom)