Otherwise, it will assume they're pipes between commands.
To print them one per line:
Changing the special IFS variable to "|" makes unquoted strings split on |, so $STR becomes a b c d e which, fed into printf "%s\n", prints each string on its own line.
Then you set IFS back to normal because you probably don't want it as | all the time.
hi,
I was trying to write a miniature shell (ie, command line interpreter) to implement the features like 'IO Redirection' and 'Pipe line fileters'.
Can anyone help me with sample shell sript to implement the above features.
cheers
supong (2 Replies)
Hi,
I want to echo the 15th line from a file named as abc.txt, also i want to echo only the values in that line not the line number.
Thanks in advance:) (4 Replies)
Hi All,
I have a file which contains data as below
When we see no pipe character in the line. append those lines to the previous line with pipe character till we get the next line with pipe character with ~(concat with ~)
Input file looks like:
1080530944|001|john.l.bonner|Acknowledge|CN... (11 Replies)
Hi guys , i need help so bad on this issue..
Basically i have to delete the line continuation symbol of first column variable and add the truncated part of that word in next line to first line.
here i written sample 3 lines but originally i have bunch of lines in that file.
client1_day- ... (3 Replies)
Hi,
I am trying to put together a Korn Shell script to insert at a specific line.
The system we use is SunOS 5.10
I can get the line number by using:-
num=`sed -n '/export ENV/=' ./tmp.file`
Not getting much headway using the above variable's value to insert -
export SYBASE=/opt/sybase15... (5 Replies)
Hi all,
I have a script which should take more than 9 command line inputs while running. Likescript.sh a s d f g h j j k l o p i u y t r e w
Now in the script if I have to access one of the input which is at position after 9, in this case say 'p' then how can I do that?
echo $12 will not work... (15 Replies)
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
lineNo=412
Now i have a line... (1 Reply)
Hi All,
i want to write a shell script read below file line by line and want to exclude the lines which contains empty value for MOUNTPOINT field.
i am using centos 7 Operating system.
want to read below file.
# cat /tmp/d5
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root"... (4 Replies)
Discussion started by: balu1234
4 Replies
LEARN ABOUT DEBIAN
od2trips
SUMO(1) User Commands SUMO(1)NAME
SUMO - Importer of O/D-matrices for the road traffic simulation SUMO
SYNOPSIS
od2trips [OPTION]*
DESCRIPTION
SUMO od2trips Version 0.15.0
Copyright (C) 2001-2012 DLR and contributors; http://sumo.sourceforge.net
Importer of O/D-matrices for the 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
Loads network (districts) from FILE
-d, --od-matrix-files FILE
Loads O/D-files from FILE(s)
Output Options:
-o, --output-file FILE
Writes trip definitions into FILE
--ignore-vehicle-type
Does not save vtype information
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
Processing Options:
-s, --scale FLOAT
Scales the loaded flows by FLOAT
--spread.uniform
Spreads trips uniformly over each time period
--vtype STR
Defines the name of the vehicle type to use
--prefix STR
Defines the prefix for vehicle names
--timeline STR
Uses STR as a timeline definition
--timeline.day-in-hours
Uses STR as a 24h-timeline definition
--dismiss-loading-errors
Continue on broken input
--no-step-log
Disable console output of current time step
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
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
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
od2trips -c <CONFIGURATION>
run with configuration 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 od2trips 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 od2trips Version 0.15.0 May 2012 SUMO(1)