10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I have below requirement.
Apple
Orange
Banana
Required O/p in bash
'Apple,Orange,Banana'
Can you please help.
Please wrap your samples, codes in CODE TAGS as per forum rules. (3 Replies)
Discussion started by: Rtk
3 Replies
2. Shell Programming and Scripting
Hello all,
I have a verilog file as following (part of it):
old.v:
bw_r_rf16x32 AUTO_TEMPLATE (
1957 // .rst_tri_en (mem_write_disable),
1958 .rclk (clk),
1959 .bit_wen (dva_bit_wr_en_e),
1960 .din ... (5 Replies)
Discussion started by: Zam_1234
5 Replies
3. Shell Programming and Scripting
Hi All,
Could you please help me to achieve below solution.
I have a FILE1.txt as below.TEXAS CALIFORNIA TEXAS
DALLAS CALIFORNIA CALIFORNIA DALLAS
DALLAS TEXAS TEXAS DALLAS
NEW YORK NEW YORk
FILE2.txt as below.TEXAS,TX
DALLAS,DA
Now I need to compare the string in FILE2.txt... (6 Replies)
Discussion started by: ureddy
6 Replies
4. Shell Programming and Scripting
I am trying to replace in multiple files every instance of text that begins with http and add hyperlink characters to it. I can get it to work with the following:sed -e "s/http*.*/<a href=\"&\">&<\/a>/g" *
as long as the http text is at the end of the file. I need it to stop at the end of the... (2 Replies)
Discussion started by: numele
2 Replies
5. Shell Programming and Scripting
Hi all,
I have a file like
one two three for
five six seven eight
.....
Actually i need to append a label to the words that belong to the 2 column and get:
one two_label three for
five six_label seven eight
....
I was trying with sed inside vim but I can't figure out... (9 Replies)
Discussion started by: Dedalus
9 Replies
6. Shell Programming and Scripting
Hi friends,
I have a file with content SOME TEXT HERE
I want to append the string GREAT to Line 1 of my file such that the file content should be
GREAT
SOME TEXT HERE
I can do a cat for the string great and file >> newfile and then rename newfile name to file
But this does not put... (5 Replies)
Discussion started by: dahlia84
5 Replies
7. Shell Programming and Scripting
hi,
anyone can give a sample command on sed. the text file date list belows;
test.txt
"a","bbb",123
"b","ccc",234
"c","eee",456
output i need to add these word "xxx"
"xxx","a","bbb",123
"xxx","b","ccc",234
"xxx" ,"c","eee",456
thanks in advance,
FSP (4 Replies)
Discussion started by: fspalero
4 Replies
8. Shell Programming and Scripting
Hello all,
I want to use sed to append a variable stored in $i, how do i do that?
$i contains a path to a directory and i want to append it before the result i get from awk statement, before affecting awk results.
rite now out put i get from code below is:-
The path is:... (2 Replies)
Discussion started by: asirohi
2 Replies
9. UNIX for Dummies Questions & Answers
Hi all
i am very new to shell scripting,hope u guys can help
i need to replace,sort and append character for the file that look like this:
1007032811010001000100000001X700026930409
1007032811010001000200000002X700026930409
1007032711020001000300000003X700026930409... (2 Replies)
Discussion started by: ashikin_8119
2 Replies
10. Shell Programming and Scripting
Hello ,
I have the folloiwing command :
sed -n "$var,$final w $destfile" $sourcefile
where :
$var - $final represent the range of line numbers to be written in $destfile
However I require this command to work in a loop for which i need the sed command to keep appending the output to the... (2 Replies)
Discussion started by: shweta_d
2 Replies