Hi
I want to read a flat file and add a word/value at the end of each line in the file and store the output in a temporary file. How can i do this? Plz help me with this.
Regards,
Saurabh (6 Replies)
Hi,
Can anybody help me how to add a word in front of a line in a file.Actually it is bit tricky to add a word. i will give a sample for this:
Input :
1110001 ABC DEF
1110001 EFG HIJ
1110001 KLM NOP
1110002 QRS RST
1110002 UVW XYZ
Output:
%HD% 1110001 ABC DEF
%DT% 1110001 EFG HIJ... (4 Replies)
I have a file which will have rows like shown below,
ST*820*316054716
RMR*IV*11333331009*PO*40.31
REF*IV*22234441009*xsss471-2762
DTM*003*091016
ENT*000006
RMR*IV*2222234444*PO*239.91
REF*IV*1234445451009*LJhjlkhkj471-2762 </SPAN>
DTM*003*
091016
RMR*IV*2223344441009*PO*40.31... (18 Replies)
hey,
i would like to add a line number to the beginning like so:
red
blue
green
yellow
will be:
1=>red
2=>blue
3=>green
4=>yellowplease advise
thank u. (5 Replies)
Well here goes:
I tried to write a batch file that adds a specific fixed text to each line of an already existing text file.
for the adding text infront of each line I tried this:
for /F "delims=" %%j in (list.txt) do echo.STARTTEXT\%%j >> list.txt
for adding text after each line I... (6 Replies)
Hi,
I have a specific requirement to add text at the beginning and end of a plain text file. I tried to use "sed" with '1i' and '$a' flags but these required two separate "sed" commands separated with "|".
I am looking for some command/option to join these two in single command parameter.
... (6 Replies)
My file has the entries like below...
/dev/sds
/dev/sdak
/dev/sdbc
/dev/sdbu
I want to make the file like below
echo 1 > /sys/block/sds/device/rescan
echo 1 > /sys/block/sdak/device/rescan
echo 1 > /sys/block/sdbc/device/rescan
echo 1 > /sys/block/sdbu/device/rescan (2 Replies)
SUSE linux
bash shell
this works
test -d /tmpp && echo "directory exists" || echo "directory doesn't exists" |sed -e "s/^/prefix /"
prefix directory doesn't exists
but why doesn't this work?
test -d /tmp && echo "directory exists" || echo "directory doesn't exists" |sed -e... (3 Replies)
Discussion started by: snoman1
3 Replies
LEARN ABOUT DEBIAN
vlatai
vlatai(1L)vlatai(1L)NAME
vlatai - Lojban word analyzer
SYNOPSIS
vlatai [ -v ] [ word ]
DESCRIPTION
vlatai is a program that reads a list of Lojban words from standard input, one word per line. In its usual mode, it writes a single output
line for each input line, advising of which kind of Lojban word the input line is. If the input word has cmavo prefixed onto it, vlatai
shows the individual cmavo and the base word itself.
In the verbose mode (obtained using -v), the workings of the internal state machines used for scanning the word are exposed. This may give
some insight into where an error lies on words that can't be parsed, especially if the output is used in conjuction with the report files
built during the compilation process.
Note that vlatai is primarily a testbench for the word categorizer/splitter inside jbofihe. vlatai is not fully supported or documented as
a stand-alone program.
OPTIONS -v Verbose; show lots of information about the evolution of the internal state
word The word to check. If no 'word' argument is supplied, the program reads words from standard input, one word per line (with no
whitespace around it.)
REFERENCES
http://go.to/jbofihe
Home page for the jbofihe project (of which cmafihe is part)
http://www.lojban.org/
Home page of the Lojban community
http://www.rrbcurnow.freeuk.com/lojban/
My Lojban page.
AUTHOR
Richard Curnow <rpc@myself.com>
December 2000 vlatai(1L)