Skip to content

Instantly share code, notes, and snippets.

@sedm0784
Created May 26, 2010 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sedm0784/414748 to your computer and use it in GitHub Desktop.
Save sedm0784/414748 to your computer and use it in GitHub Desktop.
shell scripts and batch scripts
@echo off
set _la="-la"
set _l="-l"
if "%1"==%_la% (
dir /OG %2
) else (
if "%2"==%_la% (
dir /OG %1
) else (
if "%1"==%_l% (
dir /OG %2
) else (
if "%2"==%_l% (
dir /OG %1
) else (
dir /W /OG %1
)
)
)
)
#!/bin/bash
du -h $1|grep -v '/.*/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment