09-27-2012
My requirement is little bit different.
. Sorry for asking so much.
if you see the output of mine
Output:
Value11|value12|value13|value14
Value21||value23|
All line have exactly same number of '|'.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all
i have input file like this abc.txt
filename.out:
<TAB>ABC<TAB>9
<TAB>AKC<TAB>1
filename1.out:
<TAB>XYZ<TAB>1
<TAB>XYN<TAB>4
and i am trying to replace \n\t with \t so that output will be like this:
filename.out:<TAB>ABC<TAB>9<TAB>AKC<TAB>1... (5 Replies)
Discussion started by: zedex
5 Replies
2. Shell Programming and Scripting
Hi,
what I am trying to do in PHP, is to replace the Title. I need some of the URL information inside aswell depending on the domain.
The title is always different so I need to store it in a variable, put the url info like described below in front of it.
Here is an example how it should... (0 Replies)
Discussion started by: lowmaster
0 Replies
3. Shell Programming and Scripting
I generally save a lot of web pages for reading offline which works out great for school. Now I have to spend a lot of time on the bus and I am looking for the best way to read some of these webpages using my Nokia 7610.
I have uploaded the files to my phone, but they are deadly deadly slow to... (2 Replies)
Discussion started by: naphelge
2 Replies
4. Shell Programming and Scripting
I have special requirement, my system provided the xml file as below(available xml file) and I need to convert it as below desired xml file.
is it possible thru shell scripts or awk?
What I need is :
my available xml contains number of records with tags <RevenueAmounts>, the last of record is... (6 Replies)
Discussion started by: LinuxLearner
6 Replies
5. Shell Programming and Scripting
The Problem
I have n files all named "conf.cfg", each of which contain a line that reads: "MyVar=XXX", where XXX can be any value.
I have a second file called report.xml, that might read:
<Reports>
<Report>Report1</Report>
<Report>Report2</Report>
<Report>Report3</Report>
</Reports>
I... (1 Reply)
Discussion started by: Flang
1 Replies
6. Shell Programming and Scripting
Hi please help me with this .
I have a file test.txt with following content
$cat test.txt
<td>$test</td>
<h2>$test2</h2>
and I have a ksh with following content
$cat test.ksh
#!/bin/ksh
test=3
test2=4
while read line
do
echo $line
done < test.html
I am expecting the output as (4 Replies)
Discussion started by: panduandpavan
4 Replies
7. Shell Programming and Scripting
Hallo,
im basically a complete noob on shell scripting and im trying to replace or rather add 1 to a number between xml tags.
The xml basically has a tag somewhere that looks like this:
<tag>12345678901234</tag>
Now i want to replace the number between the tags. And i want the file to... (6 Replies)
Discussion started by: Demoric
6 Replies
8. Shell Programming and Scripting
Hello!
I'd like to modify custom values in a XML config file between comment tags using bash script.
<feature>
<keyboardshortcut>C-m</keyboardshortcut>
<option1>disabled</option2>
<option2>enabled</option2>
</feature>
<!-- bash script features START -->
<feature>
... (2 Replies)
Discussion started by: prism1
2 Replies
9. Shell Programming and Scripting
Hi,
I have a file i which i want to replace {gIntegraHost} to {gTestRunHost} between <TCPSampler and curl only.
I am firing below command
sed '1,/<TCPSampler/!{ /curl/,/<TCPSampler/!s/{gIntegraHost}/{gTestRunHost}/; }' file1
But only on instance is getting replaced not all.
Any idea how... (6 Replies)
Discussion started by: abhitanshu
6 Replies
10. UNIX for Dummies Questions & Answers
Ok, so this is stupid simple, and I know I am going to feel like an idiot when I get help.
I am altering a HTML report that has contraband in it so that the links to said contraband and the images are not shown.
The link/img pairs are in the form of :
<a... (5 Replies)
Discussion started by: twjolson
5 Replies
LEARN ABOUT DEBIAN
microdc2
MICRODC(1) General Commands Manual MICRODC(1)
NAME
microdc - A command-line based Direct Connect client
SYNOPSIS
microdc [OPTION]...
DESCRIPTION
microdc is a command-line based Direct Connect client that uses the GNU Readline library for user interaction. It was developed from ground
up and does not depend on any other program. Despite the command-line user interface, microdc was designed to be user friendly and simple
to use.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`--').
-c, --config=FILE
Read configuration script from FILE rather than ~/.microdc/config.
-n, --no-config
Do not read config file on startup.
--help Show summary of options.
--version
Output version information and exit.
--filelist_refresh_interval=NUMBER
Local filelist refresh interval (in seconds). If set to zero, program runs in a special slave mode: it never updates the file list,
just checks every minute if the filelist changes, and if so - reads it. This is pretty useful if you connect to several hubs and use
same filelist.
FILES
The following files are used by microdc (~ represents the current user's home directory):
~/.microdc/config
This file is loaded on startup. It contains commands, one per line, that will be executed on startup. You can override loading of
this file with --config and --no-config.
~/.microdc/history
This is the command history file. It contains a list of commands that were typed and executed from the microdc prompt. It can safely
be removed.
REPORTING BUGS
Report bugs to <oskar@osk.mine.nu>.
AUTHOR
The author of microdc and this manual page is Oskar Liljeblad <oskar@osk.mine.nu>.
COPYRIGHT
Copyright (C) 2004, 2005 Oskar Liljeblad
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
microdc September 17, 2005 MICRODC(1)