Skip to main content

All Questions

Tagged with
4 questions with no upvoted or accepted answers
0 votes
0 answers
197 views

Why doesn't creating file with echo work for remote directories in this script?

I aliased the following script: #!/usr/bin/bash if [[ -d "template.html" ]]; then : else cp -n /home/$(whoami)/CS/Software/Pollen/template.html . fi /usr/bin/echo "#lang pollen [...
John Smith's user avatar
0 votes
2 answers
1k views

Can't I define aliases (using `export`) that are in my current directory? Doing so gives a `not found` message

TLDR: have to define an alias/variable using the export command, I can't use the full path and using a relative path (i.e. defining the alias while in the directory directly above what I want to ...
James Ronald's user avatar
0 votes
1 answer
312 views

Always exclude path in find command

I have a directory whose contents should never be found by find, so I aliased find like this: alias find='find -not -path "*.sync*"' the issue is that find now complains that operators are not ...
xeruf's user avatar
  • 571
0 votes
2 answers
73 views

Entering the last modified directory

Which command can I use to: Enter the last modified directory in the current directory. If no directory exists or is possible to enter, do nothing. I'm looking for an alias named ca that will work ...
Alexander's user avatar
  • 9,930