And if I thought long enough, I would bet there would be a way to accomplish with a find command also. The beauty of unix - many ways to approach and solve problems.
Using a bash script, I need to find all files in a folder "except" the newest file. Then I need to insert the contents of one text file into all the files found. This text needs to be placed at the beginning of each file and needs a blank line between it and the current contents of the file. Then I... (5 Replies)
I have parsed a curl download with sed commands. I would also like to move the last line in the output file to the top. Can I use sed for this? (3 Replies)
Ok, this is really beyond my scripting skill level so I'm hoping somebody can help me out with this. I have a trace file in the following format:
<timestame> <devicenum> <sector address> <size in sectors> <0 or 1 (write or read)>
Here is what I need to do. I need to use the <sector address>,... (3 Replies)
I need help with a bash script.
We have a directory of files which need to be renamed and moved to another directory based on filename information in a cvs file.
The contents of the cvs file are as follows:
A102345,abc123
A102347,dfg475
Where dfg475 is the basename without extension
Our... (8 Replies)
Hi All,
So I have another question. I'm trying to search for files with a certain extension and then move all of them up one level in the folder hierarchy.
So something like this:
original: /path/to/file/test.txt
after: /path/to/test.txt
I had some great help recently with another... (4 Replies)
Hi ,
I've learnt that the following command will remove the files from the given folder for given no.of days
find /home/etc -type f -atime -10 -exec rm -f {} \;
But how can I change the above command that will move the files to another specified directory instead of removing the... (1 Reply)
I have have 6 empty directory below. I would like write bash scipt if any files less "1000000000" bytes then move to "/export/home/mytmp/final" folder first and any files greater than "1000000000" bytes then move to final1, final2, final3, final4, final4, final5 and that depend see how many files,... (6 Replies)
Greetings. I know enough Unix to be dangerous (!) and know that there is a clever way to do the following and it will save me about a day of agony (this time) and I will use it forever after! (many days of agony saved in the future)!
Basically
I need to find any image files (JPGs, PSDs etc)... (5 Replies)
I have the below command to delete all .xml files older than 90 days
find . -type f -name '*.xml' -mtime +90 -exec rm {} \;
What will be the command to move all the .xml files older than 90 days to this folder -> "/tmp/my_bk"
My OS: SunOS my-pc 5.10 Generic_150400-17 sun4v sparc... (4 Replies)
I have a directory /home/cmccabe/nfs/exportedReports that contains multiple folders in it. The find writes the name of each folder to out.txt. A new directory is then created in a new location /home/cmccabe/Desktop/NGS/API, named with the date. What I am trying to do, unsuccessfully at the moment,... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
gifpos
gifpos(1) General Commands Manual gifpos(1)NAME
gifpos - A program to change GIF screen size and/or reposition images. No test is made to make sure changes will generate valid GIF files
(i.e. images are still confined to screen etc.)
USAGE
gifpos [-q] [-s Width Height] [-i Left Top] [-n n Left Top] [-h] gif-file
If no gif-file is given, GifPos will try to read a GIF file from stdin.
MEMORY REQUIRED
Line.
OPTIONS
[-q]
Quiet mode. Default off on MSDOS, on under UNIX. Controls printout of running scan lines. Use -q- to invert.
[-s Width Height]
Set the new screen dimensions, so for example `-s 1000 800' will set screen to width of 1000 and height of 800.
[-i Left Top]
set image relative to screen position, so for example `-i 100 80' will set image left position to 100 and top position to 80. This
sets the position of the first image only.
[-n n Left Top]
set image n relative to screen position, so for example '-n 3 100 80' will set the third image position as in 2.
[-h]
Print one line of command line help, similar to Usage above.
AUTHOR
Gershon Elber
Man page created by T.Gridel <tgridel@free.fr>, originally written by Eric S. Raymond <esr@thyrsus.com>
giflib-tools gifpos(1)