Skip to content

Instantly share code, notes, and snippets.

@suchoudh
Created January 8, 2021 16:37
Show Gist options
  • Select an option

  • Save suchoudh/2b25a9642ae1991ca2ce1830ccd6035d to your computer and use it in GitHub Desktop.

Select an option

Save suchoudh/2b25a9642ae1991ca2ce1830ccd6035d to your computer and use it in GitHub Desktop.
ls | sort | awk '{ print "alias " $0"=cd $HBox/"$0";cat readme*.md"}'
alias Upskillin=cd $HBox/Upskillin;cat readme*.md
alias UrgentlyGet=cd $HBox/UrgentlyGet;cat readme*.md
alias Whatis=cd $HBox/Whatis;cat readme*.md
alias WorkingWith=cd $HBox/WorkingWith;cat readme*.md
@suchoudh
Copy link
Author

suchoudh commented Jan 8, 2021

need to add ' as well

alias WorkingWith='cd $HBox/WorkingWith;cat readme*.md' to make it perfect.

@suchoudh
Copy link
Author

suchoudh commented Jan 8, 2021

use " in place of ' alias command still works and need to use a escape char

ls | sort | awk '{ print "alias " $0"="cd $HBox/"$0";cat readme11*.md""}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment