- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
5 Posted Topics
Re: (I'm assuming you're runnng on Unix/Linux, and not Windows) By default, the echo command automatically adds a new-line to the end of every line it prints. How to change this depends on which shell you're using. Try these commands and see whether the output appears on the same line as … | |
Re: You actually need `let counter=0` to initialise and `let counter=counter+1` to increment. Note the lack of spaces in the expressions. | |
Re: Just put single quotes around the searched-for string: `grep '#!/bin/bash' filename` or use back-slashes to escape all the special characters `grep \#\!\/bin\/bash filename` | |
Re: Assuming OSX is like all other Unices, a symbolic link is a pointer to a file or directory, not to a command as you're trying to do here. So I might do `ln -s ~/Development/python/searchMethod/python/searchMethod.py' searchMethod` so I could then type `/usr/bin/env python searchMethod` What you are trying to do … | |
Re: Also, check out the basename command |
The End.