tail -f filename
find top_directory -name mask
grep keyword `find dir -name mask`
or a bit easier (without mask), the -I
excludes binary files
grep -r -I keyword dir
There is no undelete utility. The only chance is to grep your disk and search for some phrases which were in your lost document.
grep --binary-files=text -300 "the search phrase" /dev/sda1 > output
The -300
switch gives the size of block (around found phrase) to be saved to the output
file.
In bash
unset -v $(env | sed 's/\([A-Z_0-9]*\)=.*/\1/')
in tcsh
set bla=`env | sed 's/\([A-Z_0-9]*\)=.*/\1/'` ; unsetenv ${bla}
while read line do echo "line = $line" done < <(cvs update -d 2>&1)
Advantage: the loop is not run in subshell and hence in its body one can modify shell variables.
The 2>&1
redirects stderr to stdout which it turn means that also error output goes through the while loop.
echo -e "\033[00;31mUNKNOWN FILES\033[00m"
For more information see article Paint your bash.
ffmpeg -i <your_input_video>.flv -vn -acodec copy <your_output_file>.mp3
The flash files often miss the flv
suffix. Often, then can be found by
ll /tmp|grep Flash
See my work_konsole script and tabs definition file. A bit more details can be found in The Konsole Handbook.
pwd -P
date -d "Oct 20 12:00:00 CEST 2011" +%s
date -d @1319104800