12-09-2012
Can you post realistic input an desired output files?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
my input file contains thousands of lines like below
234A dept of education
9788 dept of commerce
8677 dept of engineering
How do i add a delimeter ':' after FIRST 4 CHARACTERS in a line
234A:dept of education
9788:dept of commerce
8677:dept of engineering (7 Replies)
Discussion started by: systemsb
7 Replies
2. Shell Programming and Scripting
Hello,
in my script i have this lines of code in a while cycle:
..
let j=i+1
t_prod_$i = `cat myfile.csv | grep world | cut -d ";" -f$j`
let i+=1
...
So if i try an echo $t_prod_$i at the end of the cycle i cannot see
the right value obtained by `cat myfile.csv | grep world |... (5 Replies)
Discussion started by: drain
5 Replies
3. Shell Programming and Scripting
Hi,
I have a variable $ID=40 and I need to build a string like
40 40 40 40 40 40
so repeating ID 'n' times separated by spaces.
Any help?
Thanks
Sarah (2 Replies)
Discussion started by: f_o_555
2 Replies
4. Shell Programming and Scripting
Hi All,
I need to concatenate the values in the array into a variable. Currently the code is :
for (( i=1 ; i <= $minCount ; i++ ))
do
var="${var}""${sample_file}"
done
The output is :
/tmp/1/tmp/2/tmp/3/tmp/4/tmp/5/tmp/6/tmp/7/tmp/8/tmp/9/tmp/10
I need a space between... (1 Reply)
Discussion started by: sh_kk
1 Replies
5. Shell Programming and Scripting
Hello,
Trying to concatenate the following using bourne shell:
# !/bin/bash
# this works in bash shell e.g. get the results I am expecting
fnTmp=C$cindex.$station_0.$station_1.$station_3.$ts.tmp
#
# under !/bin/sh
# the results are not the same
Any assistance would be... (8 Replies)
Discussion started by: LAVco
8 Replies
6. Shell Programming and Scripting
Hi all, I'm trying to build a variable name automatically through a for loop for a script I'm working on, basically I want to build the variables named: $JVM_HOME0 or $JVM_HOME1 so that I can loop through some file copy/deletes and a server restart once completed. With the code below, I get this... (3 Replies)
Discussion started by: hydroponx
3 Replies
7. Shell Programming and Scripting
Hi,
I have two files.
cat file.txt
a
b
c
d
cat file1.txt
j
k
l
m
I need the output as
a:j (12 Replies)
Discussion started by: nareshkumar522
12 Replies
8. Shell Programming and Scripting
Hi Team!!
Please can anyone tell me why the following line does not work properly?
str3+=$str2
it seems that str3 variable does not keep its value in order to be concatenated in the next iteration! Thus when i print the result of the line above it returns the str2 value
What i want to do is to... (8 Replies)
Discussion started by: paladinaeon
8 Replies
9. Shell Programming and Scripting
Hi,
I was trying to work on a file which had the following data format
1 hi
1 this
1 is
1 john
2 hello
3 test
3 case
the expected output file is the below
1 hi, this, is, john
2 hello
3 test, case
I tried using awk or while read, but I couldnt... (13 Replies)
Discussion started by: karthikbhuvana
13 Replies
10. Shell Programming and Scripting
I have a script which is migrated from AIX to Linux & now while running it is no able to concatenate string values
The string concatenation step under while loop is not displaying desired result
Please find below the piece of code:
while read EXT_FILE ; do
EXT_FILE=$EXT_FILE.ext.sent
echo... (7 Replies)
Discussion started by: PreetArul
7 Replies
uuconv(1) General Commands Manual uuconv(1)
NAME
uuconv - convert UUCP configuration files
SYNOPSIS
uuconv -i type -o type [-p program] [--program program]
uuconv --input type --output type [-p program] [--program program]
DESCRIPTION
The uuconv program can be used to convert UUCP configuration files from one format to another. This can be useful for administrators con-
verting from an older UUCP package. Taylor UUCP is able to read and use old configuration file formats, but some new features can not be
selected using the old formats.
The type of configuration file to read is specified using the -i or --input options. The type of configuration file to write is specified
using the -o or --output options.
The supported configuration file types are taylor, v2, and hdb. For a description of the taylor configuration files, use the info command
and see "*Note Configuration Files::" for uucp. The other types of configuration files are used by traditional UUCP packages, and are not
described in this manual.
An input configuration of type taylor is read from a compiled in directory by default.
The output configuration is written to files in the directory in which uuconv is run.
Some information in the input files may not be representable in the desired output format, in which case uuconv will silently discard it.
The output of uuconv should be carefully checked before it is used. The uuchk(8) program may be used for this purpose.
The -p or --program option may be used to convert specific cu configuration information, rather than the default of only converting the
uucp configuration information.
OPTIONS
-i, --input
Set input type (one of taylor, v2, hdb)
-o, --output
Set output type (one of taylor, v2, hdb)
-p, --program
Program to convert (e.g., uucp or cu)
Standard UUCP options:
-v, --version Report version information and exit.
--help
Print a help message and exit.
SEE ALSO
cu(1), info(1), uucp(1), uuchk(8)
AUTHOR
Ian Lance Taylor <ian@airs.com>. Text for this Manpage comes from Taylor UUCP, version 1.07 Info documentation.
Taylor UUCP 1.07 uuconv(1)