10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everyone.
I am trying to replace
sprintf(buffer, "{\"id\":1,\"method\":\"mining.update_block\",\"params\":}\n", coinid, blockhash);
with
sprintf(buffer, "{\"id\":1,\"method\":\"mining.update_block\",\"params\":}\n", coinid, blockhash);
this is the code I was trying but is... (9 Replies)
Discussion started by: crombiecrunch
9 Replies
2. Shell Programming and Scripting
Hello there,
I am trying to get my head around the section below of a script we use that incorporates AWK and Regular Expressions.
{ match($0,"The broker*");print $1,$2,$3 ":", substr($0, RSTART,RLENGTH)}
I have a basic understanding of how match works, what I am struggling with is the... (2 Replies)
Discussion started by: jimbojames
2 Replies
3. Hardware
Here is the error showing in the XCSF, can anyone recommend further diagnosis for this specific error?;
XSCF> showhardconf
SPARC Enterprise M3000;
+ Serial:PX61142029; Operator_Panel_Switch:Locked;
+ Power_Supply_System:Single; SCF-ID:XSCF#0;
+ System_Power:On;... (4 Replies)
Discussion started by: Touchpoint
4 Replies
4. Shell Programming and Scripting
Hi guys, I need to do a bit of work to a file.
Basically I want to run a SQL statement against each record in this file (hundreds of lines):
sample input:
233333
233334
233335
233336
I want to do the following:
1. Add a some text at the beginning to prepare the SQL (3 lines)
2. Add... (7 Replies)
Discussion started by: mcclunyboy
7 Replies
5. UNIX for Advanced & Expert Users
Hi All,
I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text:
Device | IPMB0-A | IPMB0-B
Board Address |Sent SentErr %Errr |Sent SentErr ... (10 Replies)
Discussion started by: Dendany83
10 Replies
6. Shell Programming and Scripting
I need to create a logical test to see if a job is complete.
I have 4 seperate jobs that will be running in tandem and will create a file indicating the job completed. Once all 4 jobs have completed I will need to execute the final job to execute the final task. The problem I am having is that... (5 Replies)
Discussion started by: NoMadBanker
5 Replies
7. Shell Programming and Scripting
Greetings,
I am doing something that I don't know if it is possible...
I have a file with a line looks like this:
<%s \n%s / %s \n%s \n>
and I am trying to replace this line with
<%s \n%s \n%s / %s \n%s \n>
in Shell script with sed command...
StringToReplace='%s \n%s / %s \n%s \n'... (2 Replies)
Discussion started by: wasabihowdi
2 Replies
8. Emergency UNIX and Linux Support
Hi All,
I'm trying to extract all the description fields from a MIB file which contain multiple instances of the following text:
ENTERPRISE compaq
VARIABLES { sysName, cpqHoTrapFlags, cpqSsBoxCntlrHwLocation,
cpqSsBoxCntlrIndex, cpqSsBoxBusIndex,... (10 Replies)
Discussion started by: badoshi
10 Replies
9. Shell Programming and Scripting
Dear All,
I want to decode the one of the file field.
Input file:
9393939393|999|2009-02-20 00:00:01|2||4587|2007-02-28 00:00:01|0
9393939393|2001|2009-02-20 00:00:01|2||4587|2007-02-28 00:00:01|0
9393939393|1500|2009-02-20 00:00:01|2||4587| 2007-02-28 00:00:01|0... (1 Reply)
Discussion started by: hanu_oracle
1 Replies
10. Shell Programming and Scripting
Hi,
I am trying to write a shell script designed to take input line by line by line from a file with a word on each line for editing with sed. Example file:
1.ejverything
2.bllown
3.maikling
4.manegement
5.existjing
6.systems
My design currently takes input from the user, and... (2 Replies)
Discussion started by: mkfitzwilliams
2 Replies