Timeline for puzzles list by climagic
-
See, not all that complex when you break it down. Unless you're not using Linux, then the ext[234] part may be confusing. Sorry.
-
while read -r f ; do s="Block size: 4096" ; echo "$f $s" ; done # Read each line of input into f and print f with the value of s
-
s=$( dumpe2fs -h /dev/sda1 2> /dev/null | grep "Block size:" ) # Assign the blocksize line to the variable 's'
-
dumpe2fs -h /dev/sda1 2> /dev/null | grep "Block size:" # Dump the information about the filesystem /dev/sda1, grepping out the block size.
-
df -PT | awk '$2~/^ext[234]$/{print $1}' # For each filesystem line, print the device of ones that are ext2, ext3 or ext4. (Linux)
-
df -PT # List out the filesystems along with their types in POSIX format so that each FS entry is not broken across multiple lines.
-
If you look at large commands like the last one and it is overwhelming, don't worry; It was for me once too; Break it up and start small.
-
df -PT |awk '$2~/^ext[234]$/{print $1}' |while read -r f;do s=$(dumpe2fs -h $f 2>/dev/null|grep "Block size:");echo "$f $s";done # blksize
-
awk '$1>250 { x++ } END {print x}' data # Print the number of lines in the file data where the first column is a number greater than 250.
-
RT @jamesmslocum: Draw from the commmand line convert -size 100x100 xc:white -fill black -draw 'circle 50,50 60,60' circle.png
-
li(){ space=$(printf "%${1:-2}s");sed "s/^/$space/"; } # This will turn it into a function you can pipe too. Example: ls -1 | li 5
-
ls -l | sed 's/^/ /' # Indent every line by two characters on a console display where the far left side is hard to see.
-
http://bit.ly/17SUs09 # Inspiring story about a child from a broken home who through perseverance became a leader in Comp. Sci.
-
Apple: Do --everything different.
-
for i in $(seq 2012 -1 1950);do [ $( diff <(ncal -h 6 2013|tail -n+2) <(ncal -h 6 $i|tail -n+2) |wc -l ) == 0 ] && echo $i;done # June match
-
http://bit.ly/12LhDIC # What a mom's keyboard might look like. Then again, some moms know 68K Assembly.
-
Famous user quotes: I didn't change anything. I swear!
-
http://bit.ly/RnlsNV # Find yourself typing gti instead of git, this will "train" you just like sl does.
-
sudo apt-get install sl # This will "train" you. Thanks @Scooter789
-
find . -printf "%TY\n" | sort -n | uniq -c # Show a file count by year file last modified starting from the current directory descending.