Hey all
I have written a python program that takes as input the name of a data file with the extension .lc I would like to write a shell script that finds all of the .lc files in a set of branching directories and runs the program.
Any help? (5 Replies)
Hello
I am getting error when the file (Folder or Application) path having space is given as external input to the shell program.
It works fine for the files which has no spaces in the file name
Thans, (5 Replies)
Hi, I've got this requirement for my homework assignment, but I'm not sure how to meet it:
In the comamnd line, I need to type
$ <exec-file> <input> <output_file_name>
Like:
test 1+2 out.txt
Which should execute test.exe passing in 1+2 and directing output to out.txt.
I know how... (1 Reply)
Hey, I was trying to figure out how to launch a program from the command line, and it works if you pass it a config file. I was thinking about writing a script to dynamically create the config file and pass it to the command using something like command substitution (so I don't actually have to... (3 Replies)
Hello
I am trying to run a python program using shell script, which takes a single argument from a file.
This file has one entry per line :
1aaa
2bbb
3ccc
4ddd
5eee
...
...
...
My shell script runs the program, only for the last entry :
#!/bin/sh
IFS=$'\n'
for line in $(cat... (2 Replies)
Output file template format
<input_file_name>a</input_file_name>
<total_length_size>b</total_length_size>
<log_10_length_size>c</log_10_length_size>
Input_file_1 (eg. sample.txt)
SDFSDGDGSFGRTREREYWW
Parameter:
a is equal to the input file name
b is equal to the total length of... (2 Replies)
I need to run sql script from shell script which takes the input from a file and contents of file will be like :
12345
34567
78657
and query will be like :
select seq_nbr from bus_event where event_nbr='12345';
select seq_nbr from bus_event where event_nbr='34567';
select seq_nbr... (1 Reply)
Hi Friends,
I am running a program
/path/to/program -i 1 100 -o /path/to/output/op_1_100.txt
In the above command, I have to try various number of combinations at the -i parameter and the output file name varies with each combination.
Now, I have my -i parameter text file, which is like... (4 Replies)
Hi Friends,
This is the only solution to my task. So, any help is highly appreciated.
I have a file
cat input1.bed
chr1 100 200 abc
chr1 120 300 def
chr1 145 226 ghi
chr2 567 600 unix
Now, I have another file by name
input2.bed (This file is a binary file not readable by the... (7 Replies)
I want to take the file name as an input to the program and copy that file into new location using shell. Below program is not working properly.
#!/bin/sh
if ; then
`/usr/bin/perl -pi -e's/(notifications_enabled\s*)(\d+)/$sub = "$1" . ("$2"== "0" ? "1":"0")/e; ' $file`
`cp... (2 Replies)
Discussion started by: praveen265
2 Replies
LEARN ABOUT DEBIAN
xupdate
XUPDATE(1p) User Contributed Perl Documentation XUPDATE(1p)NAME
xupdate - Process XUpdate commands over an XML document
SYNOPSIS
xupdate [options] <xupdate-file> <input-file>
Options:
-u | --usage print brief help on usage
-h | --help print documentation
-n | --namespace prefix=namespace-uri
associate a namespace with a prefix for use
in XPath selections in XUpdate file
(this option may occur several times)
-k | --keep-ws preserve whitespace in the XUpdate file
-s | --strip-ws strip ignorable whitespace from the input file
-V | --version print current version and revision
-i | --indent indent the output XML
-j | --extra-indent like -i, but also adds a leading and a trailing
linebreak to every text node.
but also put an extra newline after
every start-tag and before every end-tag
OPTIONS --usage Print a brief help message on usage and exits.
--help Prints the manual page and exits.
--namespace prefix=namespace-uri
Associate a namespace with a prefix. The prefix may be used in the XPath selections in the XUpdate file to address nodes of the
source document that belong to the given namespace. This is especially useful for mapping the default namespace to a prefix
because XPath by definition doesn't honour default namespaces. This option may occur several times.
--keep-ws
Preserves any whitespace in XUpdate file. The default behaviour is to remove all ignorable whitespace and any leading or trailing
whitespace in all XUpdate command elements in the XUpdate file.
--strip-ws
Remove "ignorable" whitespace from the input file. The default behaviour is to keep any whitespace unless the --extra-indent (-j)
option is used. Note that the whitespace being present or not may affect results returned by some XPath expressions (such as
/foo/bar/text()[2]).
--version
Print version and revision number of This program command and version number of XML::XUpdate library used.
--indent
Indent the resulting document on output.
--extra-indent
Indent the resulting document on output as --indent, but also add a leading and a trailing linebreak to every text node.
--debug Print some debugging information about commands being applied.
DESCRIPTION
This program will parse the given XUpdate file and the input file and print the input file updated accordingly. XUpdate file format is
described in XUpdate Working Draft from 2000-09-14 (http://www.xmldb.org/xupdate/xupdate-wd.html).
AUTHOR
Petr Pajas, pajas@matfyz.cz
COPYRIGHT
Copyright 2002-2003 Petr Pajas, All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-08-02 XUPDATE(1p)