Shell Commands: Difference between revisions

From Micro and Nano Mechanics Group
Jump to navigation Jump to search
(New page: ( in alphabetical order ) '''grep''' to show lines matching a pattern from files grep EPOT runs/mo-example/A.log grep -3 Stress runs/mo-example/A.log grep -w mea Fortran/MEAM-Baske...)
 
No edit summary
Line 1: Line 1:
( in alphabetical order )
( in alphabetical order )

'''find''' to search for files in a directory hierarchy
find ./ -name param.inc


'''grep''' to show lines matching a pattern from files
'''grep''' to show lines matching a pattern from files

Revision as of 00:42, 3 December 2007

( in alphabetical order )

find to search for files in a directory hierarchy

 find ./ -name param.inc

grep to show lines matching a pattern from files

 grep EPOT runs/mo-example/A.log
 grep -3 Stress runs/mo-example/A.log
 grep -w mea Fortran/MEAM-Baskes/meam/*

yum (Yellowdog Updater Modified) update program

 yum search gcc
 yum list installed | grep python-numeric
 yum remove python-numeric.i386
 yum install python-numeric.i386
 yum check-update gcc.i386
 yum update gcc.i386
 yum info gcc.i386