Actually I have many pictures with diferent name and size around 2000, I need generate a copy of them from one list of alias. The structure of the list is something like this:
alias_list.txt
The file between <01> <02> is real, I already have it, all files are inside one folder called pictures, I need generate all alias, so I am trying to make one script like this:
alias.txt
Someone have idea what I can do about? I tought to use awk but till now i made only disasters.
How can the number of aliases be determined? Why zero aliases for test.png?
Please show some of your "disasters" for discussion.
The list is made from one service of television, the pictures are the symbols of the tv channels, so if one channel is popular can be have some alias with better or lower quality of resolution, but can be also some alias are removed if the cannel become less popular.
If the channel is not popular, can be there are not aliases, like channels repropose the show of the day before.
Sometime also happens event, like footbal match or maybe reality show, so can be there are new random channels temporary.
I have no way to know the exact number of aliases, everytime I recive the list can be totally different.
So I tried to do something using the tags <01> and <02> because anyway <01> is one channel and between <02> and <01> there are the aliases, but is not working :P
Telling the truth I tried to copy one example I found online but I made only disasters :P :P
Thinking now probably I need add with my and the tag <01> at the end of the list... Mmmmm..... I am so confuse.
Not sure I understand, but does this help:
?
Use this randomly generated name for the copy operation.
Mmmmm... No I think am not clear to explain, I try again making one example better
I recive one list of pictures like this, this is one TXT file
<01>CBS.png<02> cbs.png
CBS HD.png
CBS SD.png
CBS HD +1.png
<01>E!.png<02>
<01>Disney Channel.png<02> DISNEY CHANNEL.png DISNEY CHANNEL HD.png
<01>Fox.png<02> FOX.png
FoX.png
FOX HD.png
FOX FHD.png FOX FHD.png
Fox +1 HD.png
Fox +2 HD.png
.
. The list Is long like 2000 channels, the channels are inside the tags <01><02>
I recive also una usb key with the pictures I wrote with the blue color
So I have the foldre /pictures/ with inside the files
CBS.png
E!.png
Disney Channel.png
Fox.png
.
.
. plus other 2000 files.
I need create the files I wrote in orange color, so in my mind I want make one file .sh to execute and duplicate the files blue to the files orange. I want make one file like this
Gents,
Please can you help.
I want to create a list which contends the complete patch of the location of some directories with the size of each file.
need to select only .txt file
In this case I am try to find the subdirectories tp1 and tp2 and create the output list.
jd175-1
tp1... (3 Replies)
we want to backup all opened files by vi before editing also with version information. i wrote below alias to backup crontab file content with version info. What i want know is to make this opened files by vi. We want to prevent user mistakes by adding this alias.
alias crontab='DATE=$(date... (4 Replies)
Hello Guys
I have a big list of files in one directory. And Some are missing .
Example
ls -l
2191off-r0.sps
2193off-r0.sps
2194off-r0.sps
2197off-r0.sps
2198off-r0.sps
2200off-r0.sps
I would like to create a file with the list only missing files. Or if is possible to create in ... (4 Replies)
Hello Guys.
Please I would like to create empty files from a list
In file1 will be the followin values, so i will like to create for each name a empty file.
file1
2191off-r0.sps
2192off-r0.sps
2193off-r0.sps
2194off-r0.sps
2195off-r0.sps
So I need to get 5 empty files.
Thanks for... (7 Replies)
If one:
$ find -name 'some expression' -type f > newfile
and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory.
I am... (3 Replies)
I want to create an alias cpage4 and create a postscript file
For example I want to call
cpage4 file.f
which creates the file file.ps
I have written like this but don't know how to continue
alias cpage4 '/usr/bin/mpage -m40 -4AHP- \!* (6 Replies)
I have a list of filenames that I want created - they must be created via a certain naming convention due to the software I'm using. Once they are created I have another file that will be used to populate them with data. So far this is what I have:
#For each line in text file "foo_txt" create... (2 Replies)
Hi,
i have say 100 files in a directory.
file1.log
file2.log
file3.log
file4.log
file5.log
file6.log
...
...
...
file99.log
file100.log
=========
I need to create another file which contains the list of al these log files.
each file should contain only 10 log file names.
it shud... (4 Replies)
Hi,
I want to put all the deleted files in a txt file. Because i want to backup my image server which has thousands of jpg images. I wrote a shell script which will copies images from image server to backup image server. I setup a cronjob which runs on every five minutes. & through timestamp it... (8 Replies)
Hello Mates! I'm kinda new to unix and need to a solve a problem.
Input: date
Situation: With the given date I need to find a list of all such files starting from a given path that were modified after the given date.
I experimented with the "find" with "-newer" but did not quite get it... (4 Replies)