02-03-2019
Hi nezabudka,
There are lots of possibilities here. Why don't we wait for siamak to explain what is really wanted.
It is too late at night (actually early in the morning) for me to come up with solutions for all of the possibilities that might meet siamak's ambiguous requirements.
Cheers,
Don
Last edited by Don Cragun; 02-03-2019 at 01:54 PM..
Reason: Remove obvious quote.
This User Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to insert a single character at position 11 in everyline of a file.
My input file looks like this:
456781 ~Y~12345
456782 ~N~12300
and I want my output to look like this:
45678~1 ~Y~12345
45678~2 ~N~12300
I tried the following awk code, but it's not working:... (3 Replies)
Discussion started by: mmarino
3 Replies
2. Shell Programming and Scripting
Hi,
I have a log file generated by a tool which has the following look :
/tmp/releases/directory/datefilename1_release_date.zip
/tmp/releases/directory/datefilename2_release_date.zip
/tmp/releases/directory/datefilename3_release_date.zip... (8 Replies)
Discussion started by: bhaskar_m
8 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I have below type file.
abc|asd|pqr|2|2|2
asc|qwe|scf|5|4|4
Pipe location and count is dynamic and coming from a variable.
I want to change it to below files.
(chnage the first pipe to 3 pipes)
abc|||asd|pqr|2|2|2
asc|||qwe|scf|5|4|4
(chnage the second pipe to 4 pipes)... (1 Reply)
Discussion started by: swat
1 Replies
4. Shell Programming and Scripting
How can using Vim, replace one character with another repeating it 10 times?
Ex.:
Transforming this: 125A986
That: 125##########986 (12 Replies)
Discussion started by: IJNeves
12 Replies
5. Shell Programming and Scripting
Hi,
I need to add Pipe (|) at 5th and 18th position of all records a file. How can I do this?
I tried to add it at 5th position using the below code. It didnt work. Please help!!!
awk '{substr($0,5,1) ~ /|/}{print}' $input_file > $temp_file (1 Reply)
Discussion started by: gpaulose
1 Replies
6. Shell Programming and Scripting
I have a file and I can get the line with a specific pattern. I want to inset # on start of the line.
file.text
====
aa bb cc
bb hh kk
kk ll yy
dd aa kk
rr tt aa
I want to comment out the line with contain "aa"
after running the script
file.text
====
#aa bb cc
bb hh kk
kk ll... (7 Replies)
Discussion started by: Biplab
7 Replies
7. Solaris
Hi,
Anyone can help me in Solaris command on how to insert a file at specific line.
I want file1.sql content to be inserted on file2.sh after "recover database using backup controlfile until cancel".
# file1.sql
/archivelogs/927_822338133.arc
/archivelogs/671_822338107.arc... (3 Replies)
Discussion started by: fspalero
3 Replies
8. Shell Programming and Scripting
Hi,
If my first character of a line starts with 2 then after 5th charecter newline character should be inserted.
Input.txt:
a1234567890
2222300007
bsdfsdf888999999
ssdfkjskfdjskfdjd
2899900000000099999999999999
28887777
999999999999999999
Output.txt:
a1234567890
22223
00007... (8 Replies)
Discussion started by: unme
8 Replies
9. Shell Programming and Scripting
Hi All,
I am trying to write a shell script where it should insert character 'I' in 180th position of each line(except first and last line) of the file. Below is the script
for file in /home/test/bharat/*.RET
do
# Process file
echo "File Name=" $file
#l_fileName="${file##*/}"
... (19 Replies)
Discussion started by: bharath561989
19 Replies
10. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT DEBIAN
clmmeet
clm meet(1) USER COMMANDS clm meet(1)
NAME
clm meet - compute the intersection of a set of clusterings.
clmmeet is not in actual fact a program. This manual page documents the behaviour and options of the clm program when invoked in mode meet.
The options -h, --apropos, --version, -set, --nop are accessible in all clm modes. They are described in the clm manual page.
SYNOPSIS
clm meet [-o fname (output file name)] [-h (print synopsis, exit)] [--apropos (print synopsis, exit)] [--version (print version, exit)]
<file name>+
DESCRIPTION
clm meet computes the intersection of a set of clusterings, that is, the largest clustering that is a subclustering of all the clusterings
in the set. It stores the intersection (or meet) in the argument to the -o flag, which must be the first option given. All remaining argu-
ments are interpreted as names of files containing clusterings in mcl format (see mcxio(5)), which must all pertain to a set of the same
cardinality.
This utility can be useful in measuring (in conjunction with clm dist) the consistency of a set of clusterings at different levels of granu-
larity - if the meet of all those clusterings is close to being a subclustering of each of them, consistency is good. See clm dist for an
example.
OPTIONS
-o fname (output file name)
AUTHOR
Stijn van Dongen.
SEE ALSO
mclfamily(7) for an overview of all the documentation and the utilities in the mcl family.
clm meet 12-068 8 Mar 2012 clm meet(1)