links
https://sourcemaking.com/design_patterns/composite/cpp/1
Move files Example https://stackoverflow.com/questions/4645242/how-to-move-file-from-one-location-to-another-location-in-java http://www.baeldung.com/java-how-to-rename-or-move-a-file
https://en.wikipedia.org/wiki/Block_Elements#Character_table
find . -name ".csv" tree . // to know the hirarcy find . -maxdepth 1 -name ".csv" rm -r another_folder/
Locate: is faster than Find but we need to update the database using[ sudo updatedb]
grep does not look for information about file it rather search for contents of a file
find /etc -name *.conf [/etc where to start]
grep SERVERNAME /etc/* -r //SERVERNAME- this is text we are looking for, /etc/* this is where we are trying to look for, -r recursive looking
https://www.youtube.com/watch?v=u4I6Fhc_00s
find where cretiria{permission, type, name, time} what-to-do example: //.(dot) meaning current directory // size of 0, access time more than 10days
find /temp -size 0 -atime +10 -exec ls -1 {} ; > ./chckold.txt find=where=criteria==========whattodo=
with specific name: -iname "abc.txt" search with specific name -o meaning or -maxdepth -type f meaning file types -type d meaning directory type -empty files which are empty -size +1M -size -2M find . -user bob
/Users/venkatdesu/Desktop /Users/venkatdesu/Desktop/Study/unix
diff command prints the lines that are different in two lines
Showing progress https://www.youtube.com/watch?v=xIfsdW6ripo
-pv (pipe view command)
pv
awk 'NF' file
this command will remove empty lines in a text file
https://stackoverflow.com/questions/16414410/delete-empty-lines-using-sed
-- move files
Function declarations https://stackoverflow.com/questions/6212219/passing-parameters-to-a-bash-function
https://stackoverflow.com/questions/309424/read-convert-an-inputstream-to-a-string