Skip to content

Instantly share code, notes, and snippets.

@tapankavasthi
Last active March 19, 2020 18:40
Show Gist options
  • Save tapankavasthi/c9f892655a682bce2e4600bbeec0a24b to your computer and use it in GitHub Desktop.
Save tapankavasthi/c9f892655a682bce2e4600bbeec0a24b to your computer and use it in GitHub Desktop.
#!/bin/sh
touch touch_file && (ls -latrh ./touch_file | awk '{print "size with touch is", $5;}');
mkdir mkdir_file && (ls -latrh ./mkdir_file | awk '{if($9==".") print "size with mkdir is", $5;}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment