Sponsored Content
Full Discussion: renaming files globally
Top Forums Shell Programming and Scripting renaming files globally Post 302443676 by kurumi on Monday 9th of August 2010 08:50:09 PM
Old 08-09-2010
Code:
find /home/vedder191/AAA_revised -type f -name "*.pdf" | awk -F"/" '{printf "mv "$0" ";$NF="AAA"$NF;}1' OFS="/" | sh

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

installing globally

where is the best location in a system to install software globally for users to use. asuming your the sys admin. i know it might not matter, but just wondering. (2 Replies)
Discussion started by: savage
2 Replies

2. UNIX for Dummies Questions & Answers

renaming the files

Hi All, Today I got a small problem while handling zipped files in PROD support. There are files in this format and I had to grep them reading some contents A.B.gz.C.D where A,B,C and D stand for variables (like FIRST.NAME.gz.MIDDLE.LAST). I know that these files are zipped files and If I... (1 Reply)
Discussion started by: adurga
1 Replies

3. UNIX for Dummies Questions & Answers

Renaming Files

Hi Alll, I have a script that we use on the servers to change the name of files that have spaces in the name: #!/bin/tcsh set n = 0 foreach f ( * ) echo $f | grep " " if ( $? == 0 ) then mv "$f" `echo $f | sed -e "s/ /_/g"` @ n += 1 endif end echo $n changed I need to write a... (2 Replies)
Discussion started by: abch624
2 Replies

4. Shell Programming and Scripting

Renaming Files

Hi Alll, I have a script that we use on the servers to change the name of files that have spaces in the name: #!/bin/tcsh set n = 0 foreach f ( * ) echo $f | grep " " if ( $? == 0 ) then mv "$f" `echo $f | sed -e "s/ /_/g"` @ n += 1 endif end echo $n changed I need to write a... (2 Replies)
Discussion started by: abch624
2 Replies

5. Shell Programming and Scripting

renaming files or adding a name in the beginning of all files in a folder

Hi All I have a folder that contains hundreds of file with a names 3.msa 4.msa 21.msa 6.msa 345.msa 456.msa 98.msa ... ... ... I need rename each of this file by adding "core_" in the begiining of each file such as core_3.msa core_4.msa core_21.msa (4 Replies)
Discussion started by: Lucky Ali
4 Replies

6. UNIX for Dummies Questions & Answers

Renaming Files With 2 .

Dear All expertise.. just wanna ask if there is a way on how to change the filename as per below sample:- filename:- cob120514093156.03.466926330 CCBS-CPMM_SEND_COB_120514_100549_3.rpt to convert to:- cob120514093156.03.466926330.bd (rename from cob120514093156.03.466926330) ... (17 Replies)
Discussion started by: yokomo
17 Replies

7. Shell Programming and Scripting

Renaming multiple files in sftp server in a get files script

Hi, In sftp script to get files, I have to rename all the files which I am picking. Rename command does not work here. Is there any way to do this? I am using #!/bin/ksh For eg: sftp user@host <<EOF cd /path get *.txt rename *.txt *.txt.done ... (7 Replies)
Discussion started by: jhilmil
7 Replies

8. Shell Programming and Scripting

Renaming Files

I have a directory with a long list of files. I want to change their names such that the first letter of the name of the author is capitalised. I have tried the following command and did not get what I require. rename 'y/....../....../' *.pdf 2007--nystrom--Diss.pdf... (1 Reply)
Discussion started by: Danette
1 Replies
BOOKLETIMPOSER(1)					      General Commands Manual						 BOOKLETIMPOSER(1)

NAME
bookletimposer - An utility to reorganize PDF pages SYNOPSIS
bookletimposer [options] [input-file] bookletimposer -a [options] input-file DESCRIPTION
bookletimposer is an utility to achieve some basic imposition on PDF documents, especially designed to work on booklets. It allows: o to transform linear documents to booklets; o to reduce a document to put many on one sheet (for tracts for example); o to transform booklets to linear documents. It is a free software released under the GNU General Public License, either version 3 or (at your option) any later version. OPTIONS
--version show program's version number and exit. -h, --help show an help message and exit. -o OUTFILE, --output=OUTFILE set output PDF file to OUTFILE. -a, --no-gui automatic converstion (don't show the user interface). In that mode, the input file must be defined. -i, --gui show the user interface (default). -b, --booklet produce a booklet out of a linear document (default). -l, --linearize produce a linear document out of a booklet. -n, --no-reorganisation don't reorganize (will only scale and assemble pages). -c, --copy-pages copy the same group of input pages on one output page. -p PAGES_PER_SHEET, --pages-per-sheet=PAGES_PER_SHEET number of pages per sheet, in the format HORIZONTALxVERTICAL, e.g. 2x1. -f OUTPUT_FORMAT, --format=OUTPUT_FORMAT output page format, e.g. A4 or A3R. -k, --keep do not overwrite output file if it exists. EXAMPLES
bookletimposer Displays the GTK+ user interface. bookletimposer --no-gui --booklet --pages-per-sheet=2x1 --output=out.pdf in.pdf Converts in.pdf into a booklet with two pages per sheet an saves the result as out.pdf. bookletimposer --no-gui --linearise --pages-per-sheet=2x1 in.pdf Converts the two-pages-per-sheet booklet in.pdf into a page-by-page PDF. As the output file name is not defined, it will default to in- conv.pdf. SEE ALSO
pdfshuffler(1) BookletImposer source code and documentation can be found on the web at <https://kjo.herbesfolles.org/bookletimposer/> KNOWN ISSUES
BookletImposer is under development, which means that for the moment, some things work, some others do not... Thanks to report bugs to <kjo@a4nancy.net.eu.org> if you find some! AUTHORS
Kjo Hansi Glaz <kjo@a4nancy.net.eu.org>. bookletimposer user manual 2012 BOOKLETIMPOSER(1)
All times are GMT -4. The time now is 11:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy