



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




ls | grep -v .avi -v means everything except .avi$ means everything ending with .avi
ls | grep -v .avi | grep ^d How do
print only the sizes of files in a directory? ls -al -h | awk '{print $6}' The $6 means the 6 th^ column How do
place the previous info into a file? ls -al -h | awk '{print $6}' > file.txt How do
list only directories? ls -al | grep ^d How do I list files with only .mov in the title? ls | grep .mov How do
look at my environment variables? set How do
render Maya in batch mode? How do
get a^ list of the options? Render -s 1 -e 100 sas.mb Render -h USE CAPITAL R How do
access the CDROM? cd /mnt/cdrom How do
store a directory for retrieval later? How do
retrieve the last pushed directory? pushd dirName popd How do
write a cleaner program to remove any files that are not within the file students.txt and do not end with .avi? mkdir good;for x in cat ~/students; do mv $x.avi good; done; rm ; mv good/ .;rmdir good; Where do
put programs that I have written? In your home directory, mkdir bin. You environment variables are already set to look in this folder What do
have to do in order for a^ file to be executable as bash script program? Chmod 777 yourFile How do
write a^ program that looks through a directory and flags the files that are over 1.1 megs? for x in ls -l | grep -v ^d | awk '{if ($5>1100000) print $9}' | sort -n; do echo "$x IS TOO DAMN BIG"; done
How do
ls through a long directory and pipe the output into more? ls -sl | more
Who is the ultimate master of Bash scripting here at SCAD? Tom Davis
eject eject -t
dirs What are good documentation pages for Linux? tldp.org The Linux Documentation Project How do find and replace text in a file? sed “s/giruiz/gilbert/g” file.txt^ s means search, g means globally How can
add directories to my path list? (Where Linux will go to look for files) export PATH="$PATH:/home/dave" (With symbolic link, you must also add destination folder) How do
search for certain text phrases in the man pages of a certain command? man mplayer | grep audio How do
see how many items are in a directory? ls | grep -c. How do
count the number of items that begin with D or m? ls | grep -c ^[Dm]