The alias works like this: (just something off the top of my head)
You'll notice that the name I'm giving the file and it's source URL are on the same line as the alias. I'm positive that this is because aliases, by definition, often substitute one word for two, or are used in place of particular commands that are easily confused with others the same binary might employ. cUrl also has, on its man page, a curl -O command -- the original reason for creating this alias was that I couldn't remember which "o" did what.
Does this explain it adequately?
BZT
---------- Post updated at 14:02 ---------- Previous update was at 13:57 ----------
I know an alias invoking a function or script can be made to perform a simple task on a local file. I have another alias, ditto, that starts a script called mditto, the code of which looks like this:
"$1" is the variable (placeholder?) for the file to be worked on. If I had a "$1" with a value of
...I suppose I could use 'cut' or a string builtin to break it into two variables at the space, give those values to cUrl, stat (for) the date on "bigger-than-life-xhd.jpg" and pass the mod date from that to Exiv2 to annotate the file.
Does it sound like I'm on the right track? I'll try some code in a short while, test it, and if I run into a wall I'll be back round to ask where I'm coming up short.
Hi All,
I am setting bash as my working shell in my .profile file.
So I have written a line :
bash
as the list line in my .profile
I want to use alias as follows:
alias me='who am i'
When i log in, as expeced I enter the bash shell but alias doesn't work.
Is it because the alias is defined... (1 Reply)
In all of my brief and superficial experience with Unix or Linux, the one curious and consistent thing has been that 'cd ./' (back up one directory level) has done absolutely nothing in any of them. Now I understand that, at least for bash, 'cd ./' appears to have been substituted by 'cd ..'
Am... (1 Reply)
I had the idea come into my head that it would be good to have a single command that gave file type, file size, last modification date, and owner/group information, like what one would see in a GUI "Properties" dialog, but all in a terminal window. In my opinion, these statistics about a file... (5 Replies)
Hello!
For the moment some settings in my .bashrc contain the password of my company's firewall, which is not a good idea. I would like to use the string "PASSWORD" set in .bashrc and a script that changes all appearances of "PASSWORD" in the environment variables by the actual password (which... (4 Replies)
Hmmm.... I love these forums because I always get great prompt responses and I want to ask a question about running bash on windows. Is that allowed?
Now I know I can install cygwin cron and run bash that way.
Can I run bash from windows schedule task? How?
thanks
siegfried (1 Reply)
This seems to work: https://www.unix.com/shell-programming-scripting/179705-how-run-cygwin-bash-windows-scheduled-task.html
However, I was hoping to avoid writing a 2 line bat files to invoke my cygwin scripts as a scheduled task (since I'm making lots scheduled tasks).
I was hoping this would... (1 Reply)
Hello
I have a problem with use bash script in windows task.
If I use script by cygwin it's working well.
If I use it by Windows task I'm get error
Error :
ERROR 2 (HY000) at line 2: File '.\xxx.csv' not found (Errcode: 2)
Code Line :
load data local infile './xxx.csv' REPLACE into... (16 Replies)
i have some script with some paths inside it. The idea is to some files which is on desktop copy and move to another location. Problem is that inside script is similar to this:
cp test1.zip /root/help/
because I allways have another zip files, does it possible to have some input which ask me... (18 Replies)
Hi,
I have been trying to execute the below command by changing directory and then copying contents of one directory to another by doing some file name manipulations in between. However this isnt working since as soon as the statement completes it goes back to the original folder. Can someone... (5 Replies)