Hello all, thanks for your time (and this forum, what an awesome resource for newbs like myself!)
Anyways, I've been given the task of importing content from a directory of about...7000 HTML files. They are all named appropriately and broken down by name depending on what book they belong too.
For example, say I have the book "my-book" the files are named:
Is there anyway I can just do a find/replace on the entire directory and specify the criteria? Thats the easiest way I could think of for now...doing something like.
FIND "-pagenumber-1." and REPLACE WITH "-pagenumber-001."
FIND "-pagenumber-2." and REPLACE WITH "-pagenumber-002."
FIND "-pagenumber-11." and REPLACE WITH "-pagenumber-011."
Is this possible out of the gates through a command in Terminal? Or maybe there's a script or program I could download to do this for me?
Hi all -
I'm trying to rename a large number of files all at once and need some help figuring out the command line syntax to do it. I've already done quite a bit of research with the rename and mv commands, but so far haven't found a solution that seems to work for me. So:
The files exist... (10 Replies)
hi all,
given a path, for example :
/<pwd>/artist/album/
what i would like to do is to rename the album directory like that :
/<pwd>/artist/artist | album/
and i would like to do the latter for all the "artist" directories
and for all the "album" directories that belong to an artist
... (4 Replies)
hi i have a folder full of files. some of the names are quite off because the dimensions were the same and i had to put a 'b' after the initial number so that it didnt overwrite. what i want is a script in unix to overwrite the filwe name leaving some of the title intact, e.g. below are some... (3 Replies)
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Hi all,
Wondering how this could be accomplished........
a directory contains sequentially numbered files from fw01 to fw999.
How would I insert an additional zero so that the directory lists these files in a proper manner?
(i.e. all double digit files from fw01 to fw99 would become... (3 Replies)
I have some 50+ files in the following format :
abcd_vish_running_ZEBRA_20140818.dat_08-14-2014_23:08:23
abcd_vish_running_ZEB-RA_20140818.dat_08-14-2014_23:08:35
abcd_vish_running_ZEB_RA_20140818.dat_08-14-2014_23:08:37
abcd_vish_running_RI-NG_20140818.dat_08-14-2014_23:08:42... (5 Replies)
Hi guys,
I need a script to change the file names e.g.:-
below are the mentioned files, i want t0 change the last character of the name 00000.cdr with e.g bep01.smsc.191214210500-00000.cdr to bep01.smsc.191214210500-92311.cdr next file be like bep01.smsc.191214210500-92312.cdr
# ls -ltr... (9 Replies)
I have a .ksh script that creates an sftp batch file and runs it through sftp. It works except for one thing. If I try to "put" to a different name, it doesn't use the specified remote name...it still "puts" the original local name.
I've tried both of these, and neither work...it will always... (4 Replies)
What is wrong with this script to rename batch of similar files? For example renaming all *.txt files to *.tab .
$ for i in seq {01..10}; do touch ${i}.txt; done
$ ./rename.sh *.txt txt tab
Error:
mv: ‘01.txt’ and ‘01.txt’ are the same file.
Code is:
#!/usr/bin/bash
# renames.sh
#... (6 Replies)
I wish to rename all files ending in .txt by removing .tex.
Currently I have
me@me-Inspiron-518:~$ ls
a.tex.txt bin b.tex.txt c.tex.txt Desktop Documents Downloads d.tex.txt Music Pictures Public Templates VideosDesired outcome
me@me-Inspiron-518:~$ ls
a.txt ... (2 Replies)
Discussion started by: Xubuntu56
2 Replies
LEARN ABOUT DEBIAN
ledgersmb::batch
LedgerSMB::Batch(3pm) User Contributed Perl Documentation LedgerSMB::Batch(3pm)NAME
LedgerSMB::Batch - Batch/voucher management model for LedgerSMB 1.3
SYNOPSIS
Batch/voucher management model for LedgerSMB 1.3
METHODS
get_new_info
This gets the information required for the new batch screen. Currently this just populates the batch_number hashref value.
create
Saves the batch info and populates the id hashref value with the id inserted.
delete_voucher($id)
Deletes the voucher specified by $id.
get_search_criteria Sets all hash values needed for the search interface:
batch_classes List of all batch classes
batch_users List of all users
get_search_method (private)
Determines the appropriate search method, either for empty, mini, or full searches
Returns the appropriate stored proc name.
get_search_results
Returns the appropriate search as detected by get_search_method.
get_class_id($type)
Returns the class_id of batch class specified by its label.
post
Posts a batch to the books and makes the vouchers show up in transaction reports, financial statements, and more.
delete
Deletes the unapproved batch and all vouchers under it.
list_vouchers Returns a list of all vouchers in the batch and attaches that list to $self->{vouchers}
get Gets the batch and merges information with the current batch object.
Copyright (C) 2009, The LedgerSMB core team.
This file is licensed under the Gnu General Public License version 2, or at your option any later version. A copy of the license should
have been included with your software.
perl v5.14.2 2012-03-26 LedgerSMB::Batch(3pm)