CC vs Fortran -- default array indexing154155 calling C from Fortran -- portable interface260 comment blocks for documentation systems367 commenting out commented code, or, how to nest "comments"339 finding path of an executable183 linking gridinfo, gridinit, and FFT libraries with C/C++ code233 path to executable183 pointer pointer394 pointer reference159394 preprocessor directives with make326 pretty-printer295 programming style question, how would you choose the minimum264 question-mark colon construct127 retaining the precision of output doubles using format specifiers361 trapping floating point errors using gcc feenableexcept376 using realloc394 viewing arrays in totalview145
C++confusion between "cpp" and "CC" commands279 copying values from a C style array to a STL vector350 linking to C libraries308 using the STL map class399 using the STL vector assign member function350 using the STL vector reserve member function350 using the stringstream class373
chmodg=x ~blind home directory191 changing entire path to a selected file, but not recursively220 group/world executable directories put at risk all files within298 -R go+rXintelligently add execute bit147 1770setting the sticky bit109
diff"modern" alternatives to diff (tkdiff, ediff, vimdiff, etc...)313 -D124 comparing a file to stdin338 comparing a remote file to a local file338 ndiff, numerical differences allowed and handled intelligently378
dirname/basename commandsreturns directory path or file name from a path/filename string268401
dotfilesmaintaining consistent dotfiles across multiple systems312
du-skexcludes Cray DMF migrated files, under-estimates size of tar file267 -minclude Cray DMF migrated files164 -sktotal size of subdirectories405 -sktotaled disk usage in KBs164
FFTlinking gridinfo, gridinit, and FFT libraries with C/C++ code233
FortranCYCLE and EXIT248249 DO loop iterator exit value, formula for computing325 Fortran 90 INTEGER constants215 Fortran 90 MODULE replaces Fortran 77 COMMON199 Fortran 90 OPTIONAL subroutine args and effect on inlining208 Fortran 90 generic functions215 Fortran vs C -- default array indexing154155 IO buffering problems caused out-of-order output, fixed with flush386 LOG10 vs ALOG10158 NAMELIST213 OPEN (RECL=1024)144 RESHAPE228 WRITE144 WRITE with implied DO incompatible with read with explicit DO284 calling C from Fortran -- portable interface260 f90 type inconsistency174 free vs fixed format discussion261 header and include files171 intrinsic functions158 pretty-printer295 trapping floating point errors using gcc feenableexcept376 unformatted files and porting them219 using arbitrary array bounds154155
file commandprobe file type and other info112200332
filesaccess time178 batch editing in place126 compression and its affect on DMF migration188 determining source or type of112 generating unique file names in C/C++/Fortran programs229 remote access402 sharing with your group without compromising home directory191
findexamples147187230283331332357405 -sizefinding large files to help stay under quota259 -type mfinding migrated files162 preserving files which match a wildcard expression, deleting the rest301 -pruneprevent descending into subdirectory181187 removing core and mppcore files107 -ctimeto find recently changed files405 -mtimeto find recently modified files346 -mminto find recently modified files (GNU find)346 -exec and -typeusing -exec with chmod and -type332 -execusing with grep283 -execusing with tar331
ftpautomating ftp sessions with batch scripts and initialization macdef macros273 how to "more" remote and local files105 mget/mput a batch of files without prompting277
grep-oShow only the part of a matching line that matches the pattern358 -vexcluding grep itself from ps output224 list files not containing certain text, using find -exec230 list lines before search pattern345 -llisting file names103 listing file names even when only one file searched283 searching for multi-line patterns371 --signifies end of options226
grmview-l134 -deqdetermining memory usage at runtime134
groupgroup/world executable directories put at risk all files within298 what determines group ownership of a new file192
gzipDetermining if a zipped file is okay without unzipping it321
ksh"_" environment variable183 CDPATH environment variable123 PS1, favorite settings for your shell prompt349 command line editing397 file name completion176 history file environment variable, HISTFILE317 integer keyword354 loops in ksh354370 prompt, favorite settings for your shell prompt349 redirecting stderr and stdout223 typeset declaration385
ls-dlisting directories only391 -boctal codes for nongraphic characters180 -qquestion marks for nongraphic characters180 -Ssort by file size405 -usort by last time file was accessed405 -tsort by last time file was modified405 when directory is not "executable"244
MPIMPI_Abort for aborting MPP jobs125 MPI_Bcast vs SHMEM_BROADCAST195 MPI_Comm_dup and creating your own MPI libraries232 MPI_Rsend, synchronizing with MPI_Recv291 displaying system information from an MPI program399 how to preface stdout with task number255 message tags, coordinating sends and recvs210 using PMPI to build custom MPI subroutine timers382
MPI compilershow the flags the MPI compiler passes to the system compiler390
make.PHONY target400 dependency for Makefile itself111 parallel148 passing macro definitions from "make" compile line through to compilers297 preprocessor directives with make326 unconditional make400
man pagesadding personal man pages to search path186 stripping format chars118
NQS jobautomatically creating unique directory for output269 checking stdout/stderr while still running217 determining if checkpointed140 preventing rerun119 vanishes138
NetCDFnetCDF Operators (NCO)378 testing the equivalence of netCDF files while allowing for differences in precision378 viewing netCDF data327378
pathhow-compiledPathscale compiler option to determine, from the executable, what compiler flags were used368
performance improvementgeneral advice166 timing a series of MPI jobs393
perl".." (ranging operator) many nifty uses163 Algorithm::Permute module410 File::Basename module401 FindBin module401 Schwartzian transform375 Time::Local module398 checking number of inputs per line409 -p -iedit files in-place, assumed loop126208274304 -eentering script on command line163265 evaluating math expressions found in a text file, and s///e285 examples241262265287304322329356357358370375409 extracting fields from ls output356 map358 recovering from an untar in the wrong place357 script for condensing a file116 slurp mode371
perl regular expressionslook-ahead assertion358 minimal, or non-greedy, matching262358
psextracting grep process from grepped output224 -p $$to determine which shell I'm using294
python"/usr/bin/env python" searches PATH for python binary372 calling C/C++ from344349 evaluating math expressions found in a text file285 examples375392 extracting matched patterns from lines of input358 glob module385 itertools module410 os.path.walk392 set type in python362
qsub-l mpp_tMPP time136 -l p_mpp_tMPP time per process136 chaining a sequence of jobs150 -rocheck stdout while job still running217 -jjob log140 -nrno restart119 specifying shell to use206 starting batch job in directory from which it was submitted198
quotahow to locate all your big files so you can move or delete them259
quotescontrolling the interpretation of regular expressions280
resetcommand for rescuing corrupted terminal session361
rmdeleting a file named "-i"102 disabling "rm *" (while otherwise allowing "*")355356 preserving files which match a wildcard expression, deleting the rest179301 -i and -fusing together270
sequsing seq to generate a range of dates398 using seq with ksh354
shellappending to the settings of existing environment variables, like PATH245 command line editing397 expansion of wildcard characters216225256 how to determine which shell I'm using294 prompt and PS1, favorite settings for your shell prompt349 sh script to reformatting number strings with commas329 shell aliases -- reader favorites146 syntax for conditional tests, "[" versus "[[" versus "test"348
taradding selected files only377 archiving specific files only331 extracting specific files only323 moving everything accidentally untarred in the wrong directory somewhere else357 relative untar (remove leading "/'s")184 transferring directories between systems using tar with stdin and stdout343 using tar to preserve file ownership and group settings during file transfer364 why is tar file 3x expected size from "du -sk"267
tcshcommand completion in tcsh353 command line editing397 disabling "rm *" with "set rmstar=1"355
teepiping stderr and stdout to a file and displaying on the screen335
testshell syntax for conditional tests, "/usr/bin/[" versus "/usr/bin/test" versus "[["348
tips for lifefrom readers185306 warming your car when it's cold334
version controlmaintaining software in collaborations278
vi"!" and ":" commands, how to use registers to edit, save, and execute again173379 "yank" from file 1 and "put" into file 2252 "|" jump to column115 :.,'m s/^/Ccommenting-out blocks of Fortran code104 ex commands104302379 finding cursor column115 noautoindentfixing staggering paste122 generating and loading a list of files from grep103 :10,30s/.\{25\}/&|/inserting vertical lines142 regular expresion to switch order of element within a line274 :%s/^M//gremoving CTRL-M characters139 :frenaming file buffer193 :%s,/lib ,/usr/lib ,using characters other than "/" to delimit search/replace266 :rusing file insertion to prepend a file to current file302
vim"&" repeats last ":s" command379 autocmd, remember cursor position and other state between sessions336 making color schemes328 register ":" contains last ":" (or ex) command. "@:" executes it again379 replace330 setting highlight colors328
xargsexamples283301304322 preserving files which match a wildcard expression, deleting the rest301 -lusing with find and grep283
xlf-qsuffixIBM Fortran compiler, recognizing .f90 files as Fortran 90246303 -qsuffixRunning the preprocessor on files with arbitrary suffix303 getting XLF version numbers318 -qreport -qlistloop, optimization, and other listings309
CC vs Fortran -- default array indexing154155 calling C from Fortran -- portable interface260 comment blocks for documentation systems367 commenting out commented code, or, how to nest "comments"339 finding path of an executable183 linking gridinfo, gridinit, and FFT libraries with C/C++ code233 path to executable183 pointer pointer394 pointer reference159394 preprocessor directives with make326 pretty-printer295 programming style question, how would you choose the minimum264 question-mark colon construct127 retaining the precision of output doubles using format specifiers361 trapping floating point errors using gcc feenableexcept376 using realloc394 viewing arrays in totalview145
C++confusion between "cpp" and "CC" commands279 copying values from a C style array to a STL vector350 linking to C libraries308 using the STL map class399 using the STL vector assign member function350 using the STL vector reserve member function350 using the stringstream class373
FFTlinking gridinfo, gridinit, and FFT libraries with C/C++ code233
FortranCYCLE and EXIT248249 DO loop iterator exit value, formula for computing325 Fortran 90 INTEGER constants215 Fortran 90 MODULE replaces Fortran 77 COMMON199 Fortran 90 OPTIONAL subroutine args and effect on inlining208 Fortran 90 generic functions215 Fortran vs C -- default array indexing154155 IO buffering problems caused out-of-order output, fixed with flush386 LOG10 vs ALOG10158 NAMELIST213 OPEN (RECL=1024)144 RESHAPE228 WRITE144 WRITE with implied DO incompatible with read with explicit DO284 calling C from Fortran -- portable interface260 f90 type inconsistency174 free vs fixed format discussion261 header and include files171 intrinsic functions158 pretty-printer295 trapping floating point errors using gcc feenableexcept376 unformatted files and porting them219 using arbitrary array bounds154155
MPIMPI_Abort for aborting MPP jobs125 MPI_Bcast vs SHMEM_BROADCAST195 MPI_Comm_dup and creating your own MPI libraries232 MPI_Rsend, synchronizing with MPI_Recv291 displaying system information from an MPI program399 how to preface stdout with task number255 message tags, coordinating sends and recvs210 using PMPI to build custom MPI subroutine timers382
MPI compilershow the flags the MPI compiler passes to the system compiler390
make.PHONY target400 dependency for Makefile itself111 parallel148 passing macro definitions from "make" compile line through to compilers297 preprocessor directives with make326 unconditional make400
man pagesadding personal man pages to search path186 stripping format chars118
memory for T3E compilergetting (or not) more of it251
xlf-qsuffixIBM Fortran compiler, recognizing .f90 files as Fortran 90246303 -qsuffixRunning the preprocessor on files with arbitrary suffix303 getting XLF version numbers318 -qreport -qlistloop, optimization, and other listings309
chmodg=x ~blind home directory191 changing entire path to a selected file, but not recursively220 group/world executable directories put at risk all files within298 -R go+rXintelligently add execute bit147 1770setting the sticky bit109
diff"modern" alternatives to diff (tkdiff, ediff, vimdiff, etc...)313 -D124 comparing a file to stdin338 comparing a remote file to a local file338 ndiff, numerical differences allowed and handled intelligently378
dirname/basename commandsreturns directory path or file name from a path/filename string268401
dotfilesmaintaining consistent dotfiles across multiple systems312
du-skexcludes Cray DMF migrated files, under-estimates size of tar file267 -minclude Cray DMF migrated files164 -sktotal size of subdirectories405 -sktotaled disk usage in KBs164
file commandprobe file type and other info112200332
filesaccess time178 batch editing in place126 compression and its affect on DMF migration188 determining source or type of112 generating unique file names in C/C++/Fortran programs229 remote access402 sharing with your group without compromising home directory191
findexamples147187230283331332357405 -sizefinding large files to help stay under quota259 -type mfinding migrated files162 preserving files which match a wildcard expression, deleting the rest301 -pruneprevent descending into subdirectory181187 removing core and mppcore files107 -ctimeto find recently changed files405 -mtimeto find recently modified files346 -mminto find recently modified files (GNU find)346 -exec and -typeusing -exec with chmod and -type332 -execusing with grep283 -execusing with tar331
grep-oShow only the part of a matching line that matches the pattern358 -vexcluding grep itself from ps output224 list files not containing certain text, using find -exec230 list lines before search pattern345 -llisting file names103 listing file names even when only one file searched283 searching for multi-line patterns371 --signifies end of options226
groupgroup/world executable directories put at risk all files within298 what determines group ownership of a new file192
ksh"_" environment variable183 CDPATH environment variable123 PS1, favorite settings for your shell prompt349 command line editing397 file name completion176 history file environment variable, HISTFILE317 integer keyword354 loops in ksh354370 prompt, favorite settings for your shell prompt349 redirecting stderr and stdout223 typeset declaration385
ls-dlisting directories only391 -boctal codes for nongraphic characters180 -qquestion marks for nongraphic characters180 -Ssort by file size405 -usort by last time file was accessed405 -tsort by last time file was modified405 when directory is not "executable"244
resetcommand for rescuing corrupted terminal session361
rmdeleting a file named "-i"102 disabling "rm *" (while otherwise allowing "*")355356 preserving files which match a wildcard expression, deleting the rest179301 -i and -fusing together270
scpcopying directories recursively343 -pto preserve dates during transfer314 using remote environments with scp340
sequsing seq to generate a range of dates398 using seq with ksh354
shellappending to the settings of existing environment variables, like PATH245 command line editing397 expansion of wildcard characters216225256 how to determine which shell I'm using294 prompt and PS1, favorite settings for your shell prompt349 sh script to reformatting number strings with commas329 shell aliases -- reader favorites146 syntax for conditional tests, "[" versus "[[" versus "test"348
taradding selected files only377 archiving specific files only331 extracting specific files only323 moving everything accidentally untarred in the wrong directory somewhere else357 relative untar (remove leading "/'s")184 transferring directories between systems using tar with stdin and stdout343 using tar to preserve file ownership and group settings during file transfer364 why is tar file 3x expected size from "du -sk"267
tcshcommand completion in tcsh353 command line editing397 disabling "rm *" with "set rmstar=1"355
teepiping stderr and stdout to a file and displaying on the screen335
testshell syntax for conditional tests, "/usr/bin/[" versus "/usr/bin/test" versus "[["348
ftpautomating ftp sessions with batch scripts and initialization macdef macros273 how to "more" remote and local files105 mget/mput a batch of files without prompting277
NQS jobautomatically creating unique directory for output269 checking stdout/stderr while still running217 determining if checkpointed140 preventing rerun119 vanishes138
qsub-l mpp_tMPP time136 -l p_mpp_tMPP time per process136 chaining a sequence of jobs150 -rocheck stdout while job still running217 -jjob log140 -nrno restart119 specifying shell to use206 starting batch job in directory from which it was submitted198
vi"!" and ":" commands, how to use registers to edit, save, and execute again173379 "yank" from file 1 and "put" into file 2252 "|" jump to column115 :.,'m s/^/Ccommenting-out blocks of Fortran code104 ex commands104302379 finding cursor column115 noautoindentfixing staggering paste122 generating and loading a list of files from grep103 :10,30s/.\{25\}/&|/inserting vertical lines142 regular expresion to switch order of element within a line274 :%s/^M//gremoving CTRL-M characters139 :frenaming file buffer193 :%s,/lib ,/usr/lib ,using characters other than "/" to delimit search/replace266 :rusing file insertion to prepend a file to current file302
vim"&" repeats last ":s" command379 autocmd, remember cursor position and other state between sessions336 making color schemes328 register ":" contains last ":" (or ex) command. "@:" executes it again379 replace330 setting highlight colors328
perl".." (ranging operator) many nifty uses163 Algorithm::Permute module410 File::Basename module401 FindBin module401 Schwartzian transform375 Time::Local module398 checking number of inputs per line409 -p -iedit files in-place, assumed loop126208274304 -eentering script on command line163265 evaluating math expressions found in a text file, and s///e285 examples241262265287304322329356357358370375409 extracting fields from ls output356 map358 recovering from an untar in the wrong place357 script for condensing a file116 slurp mode371
perl regular expressionslook-ahead assertion358 minimal, or non-greedy, matching262358
python"/usr/bin/env python" searches PATH for python binary372 calling C/C++ from344349 evaluating math expressions found in a text file285 examples375392 extracting matched patterns from lines of input358 glob module385 itertools module410 os.path.walk392 set type in python362