I quite new to using UNIX, however I have a certain amount of experience using a UNIX-based astronomy package called IRAF (Image Reduction and Analysis Facility).
In IRAF, there are certain commands that are useful when copying and otherwise manipulating files....for example, if I have a list of file names stored in list.txt such as:
#note that .fit files are the image file format used in IRAF
I can then copy (and rename) the images by the following:
imcopy @list.txt @list.txt//copied
where the "@" is a symbol which means do it in a batch, ie. look at each .fit file in the list individually and copy it but this time with the name as specified by the "@list.txt//copied". to clarify, in the above command, the first parameter (@list.txt) is the input list and the second parameter (@list.txt//copied) is the output list.
so to clarify what the input and output would be for the above line of code:
and this brings me to my second part of the question:
it is hopefully clear from the input and output as I just stated it, that the "//" command appends an additional substring to the names contained within the file. This is very useful and a variation of this is that you can also prepend ie. if it were email@example.com instead of @list.txt//copied the result would be:
The .fit file format is specific to astronomy and what I am seeking to find out is if UNIX has operators equivelant to "@" and "//" as I think it will allow me to transfer text files (or any other kind of file much more quickly that I currently know how to in UNIX), ie. if that above operators worked with the unix cp command (which it doesn't), to transfer from files from one directory to the other I could use the following command:
cp @list.txt "pathofnewdirectory/"//@list.txt
so in the above example if I had files in my list.txt such as:
the cp command would copy these into the path of my chosen directory...ie:
to summarise: are there UNIX operators equivelant to "@" and "//" as I specified above?