Sponsored Content
Top Forums Shell Programming and Scripting Loop through text file > Copy Folder > Edit XML files in bulk? Post 302517772 by Corona688 on Wednesday 27th of April 2011 05:42:44 PM
Old 04-27-2011
If you have sed -i:
Code:
while IFS="," read N STR
do
        cp -R /path/to/start_folder /path/to/$N
        sed -i "s/east_ppl_ppl_por/$STR/g" /path/to/$N/SearchBoxRN.xml
        sed -i "s/east_ppl_ppl_por/$STR/g" /path/to/$N/ShoppingHomePG.xml
done < /path/to/id_key.txt

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grep multiple text files in folder into 1 text file?

How do I use the grep command to take mutiple text files in a folder and make one huge text file out of them. I'm using Mac OS X and can not find a text tool that does it so I figured I'd resort to the BSD Unix CLI for a solution... there are 5,300 files that I want to write to one huge file so... (7 Replies)
Discussion started by: coppertone
7 Replies

2. UNIX for Advanced & Expert Users

Auto copy for files from folder to folder upon instant writing

Hello all, I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written. I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Discussion started by: Bashar
2 Replies

3. Shell Programming and Scripting

Find all text files in folder and then copy to a new folder

Hi all, *I use Uwin and Cygwin emulator. I´m trying to search for all text files in the current folder (C/Files) and its sub folders using find -depth -name "*.txt" The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Discussion started by: cgkmal
4 Replies

4. Homework & Coursework Questions

copy files inside a text file

Hi Guys , I am new to this and Hi to all ,Need your help I am trying to copy Files which are inside file.txt The files inside file.txt are inthe below order file1.log file2.log file3.log ....... I want to copy these files to an output Directory , Please help (1 Reply)
Discussion started by: hc17972
1 Replies

5. UNIX for Dummies Questions & Answers

copy files grabbing destination folder from file name

Hi all... Below is what I am trying to do: 1. Having the following folder with the files... /source_folder/dodiddone.tar.gz /source_folder/gowentgone.tar.gz /source_folder/gowentgone.log 2. I need to copy and chown files with extension .tar.gz to another folder copy... (1 Reply)
Discussion started by: pedroz
1 Replies

6. Shell Programming and Scripting

Shell or perl script to replace XML text in bulk

Hi, I am looking for assistance over shell or perl (without XML twig module) which replace string in XML file under particular branch..example of code file sample.. Exact requirment : Replace "Su saldo es" in below file with "Your balance" but only in XML branch of Text id=98 and Text Id=12... (7 Replies)
Discussion started by: Ashu_099
7 Replies

7. Shell Programming and Scripting

How to copy all the contents of a list of files present in a folder to a particular file?

Hi All, I want to copy all the contents of a list of files in a folder to a particular file. i am using following command: cat dir/* >> newFile.txtIt's not working. Could you please help? Thanks, Pranav (3 Replies)
Discussion started by: Pranav Bhasker
3 Replies

8. Shell Programming and Scripting

How to copy files with the same filenames as those in another folder to that same folder?

Hello All A similar question like this was asked before but I need to change part of the question. I've two folders, Folder A contains some image files in 150 subfolders; Folder B contains text files in 350 subfolders. All image files in Folder A have the same filename as the text... (5 Replies)
Discussion started by: chlade
5 Replies

9. Shell Programming and Scripting

Copy and paste text inside a xml file

I have a really big XML file. I need copy the value of one tag inside another one tag. I try to publish one example. <channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1">Rai 1</channel> <channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1 +2HD">Rai 1... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies

10. Programming

How to write in other language in text/xml file by reading english text/xml file using C++?

Hello Team, I have 2 files.one contains english text and another contains Japanese. so i have to read english text and replace the text with Japanesh text in third file. Basically, I need a help to write japanese language in text/xml file.I heard wstring does this.Not sure how do i write... (2 Replies)
Discussion started by: SA_Palani
2 Replies
SUMO(1) 							   User Commands							   SUMO(1)

NAME
SUMO - Shortest path router and DUE computer for the microscopic road traffic simulation SUMO SYNOPSIS
duarouter [OPTION]* DESCRIPTION
SUMO duarouter Version 0.15.0 Copyright (C) 2001-2012 DLR and contributors; http://sumo.sourceforge.net Shortest path router and DUE computer for the microscopic road traffic simulation SUMO. Configuration Options: -c, --configuration-file FILE Loads the named config on startup --save-configuration FILE Saves current configuration into FILE --save-template FILE Saves a configuration template (empty) into FILE --save-schema FILE Saves the configuration schema into FILE --save-commented Adds comments to saved template, configuration, or schema Input Options: -n, --net-file FILE Use FILE as SUMO-network to route on -d, --taz-files FILE Read (additional) districts from FILE -a, --alternative-files FILE Read alternatives from FILE -f, --flow-files FILE Read flow-definitions from FILE(s) -w, --weight-files FILE Read network weights from FILE(s) --lane-weight-files FILE Read lane-based network weights from FILE(s) -x, --weight-attribute STR Name of the xml attribute which gives the edge weight -t, --trip-files FILE Read trip-definitions from FILE(s) -r, --route-files FILE Read sumo-routes from FILE(s) Output Options: -o, --output-file FILE Write generated routes to FILE --vtype-output FILE Write used vehicle types into separate FILE --exit-times Write exit times (weights) for each edge Processing Options: --ignore-errors Continue if a route could not be build --unsorted-input Assume input is unsorted --randomize-flows generate random departure times for flow input --max-alternatives INT Prune the number of alternatives to INT --remove-loops Remove loops within the route; Remove turnarounds at start and end of the route --repair Tries to correct a false route --weights.interpolate Interpolate edge weights at interval boundaries --with-taz Use origin and destination zones (districts) for in- and output --routing-algorithm STR Select among routing algorithms ['dijkstra', 'astar'] --weights.expand Expand weights behind the simulation's end --gawron.beta FLOAT Use FLOAT as Gawron's beta --gawron.a FLOAT Use FLOAT as Gawron's a --keep-all-routes Save routes with near zero probability --skip-new-routes Only reuse routes from input, do not calculate new ones --logit Use c-logit model --logit.beta FLOAT Use FLOAT as logit's beta --logit.gamma FLOAT Use FLOAT as logit's gamma --logit.theta FLOAT Use FLOAT as logit's theta (negative values mean auto-estimation) Defaults Options: --departlane STR Assigns a default depart lane --departpos STR Assigns a default depart position --departspeed STR Assigns a default depart speed --arrivallane STR Assigns a default arrival lane --arrivalpos STR Assigns a default arrival position --arrivalspeed STR Assigns a default arrival speed --defaults-override Defaults will override given values Time Options: -b, --begin TIME Defines the begin time; Previous trips will be discarded -e, --end TIME Defines the end time; Later trips will be discarded; Defaults to the maximum time that SUMO can represent Report Options: -v, --verbose Switches to verbose output -p, --print-options Prints option values before processing -?, --help Prints this screen -V, --version Prints the current version -W, --no-warnings Disables output of warnings -l, --log FILE Writes all messages to FILE (implies verbose) --message-log FILE Writes all non-error messages to FILE (implies verbose) --error-log FILE Writes all warnings and errors to FILE --stats-period INT Defines how often statistics shall be printed --no-step-log Disable console output of route parsing step Random Number Options: --random Initialises the random number generator with the current system time --seed INT Initialises the random number generator with the given value EXAMPLES
duarouter -c <CONFIGURATION> run routing with options from file REPORTING BUGS
Report bugs at <http://sourceforge.net/apps/trac/sumo/>. Get in contact via <sumo-user@lists.sourceforge.net>. Copyright (C) 2001-2012 DLR and contributors; http://sumo.sourceforge.net SUMO duarouter Version 0.15.0 is part of SUMO. SUMO is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/gpl.html SUMO duarouter Version 0.15.0 May 2012 SUMO(1)
All times are GMT -4. The time now is 09:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy