10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to automate editing of a json file using bash script.
The file I initially receive is
{
"appMap": {
"URL1": {
"name": "a"
},
"URL2": {
"name": "b"
},
"URL3": {
"name": "c"
},
}
WHat I would like to do is replace... (5 Replies)
Discussion started by: Junaid Subhani
5 Replies
2. Shell Programming and Scripting
Hi everyone,
I'm trying to write my first ever shell script, the OS is Raspbian. The code I have written must be executed whenever a certain database has been modified. The database resides on a Windows server to which I have a mount point, and I have no control over the Windows server at all so... (2 Replies)
Discussion started by: gjws
2 Replies
3. Shell Programming and Scripting
Hi ,
I have been trying to write a awk script which will have the following Output
1. Append the last Characters of the lines matching pattern xxxxxxxxx & then a space & then Append the last Characters of the lines matching pattern yyyyyyyyy
2. the process will continue till end of file &... (10 Replies)
Discussion started by: newageBATMAN
10 Replies
4. Shell Programming and Scripting
Hello,
I want to check the value of all MySQL columns.(column name is "status") via bash script.
If value is "0" at I want to make only single column value to "1"
I have many "0" values on mysql database(on "status" column)
"0" means it is a draft post. I want to publish a post. I... (2 Replies)
Discussion started by: tara123
2 Replies
5. Shell Programming and Scripting
Please help with this.. my file sizes exceed 40GB,,not possible to do manually.
I have a string in the 2nd column that has strings like 5M108N31M, 3S2M100N45M4S etc..the first column is a number.
There can be 0,1 or 2 number of S but only 1,2 Ms and only 1 N.
S only occurs at the... (4 Replies)
Discussion started by: ritakadm
4 Replies
6. Shell Programming and Scripting
Hi all,
I need to run df, and parse the value under column of "Mounted on"
For instance, my df is
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 4881344 4106460 526924 89% /
none 245164 220 244944 1% /dev... (6 Replies)
Discussion started by: peuceul
6 Replies
7. Shell Programming and Scripting
Hello,
I need help.
I create www page, and I have link, where is weather and is updated each hour.
And I need cut only weather from source code.
Example:
Monday : 12/14
...
Can you help me?
Thanks (2 Replies)
Discussion started by: krcek12
2 Replies
8. Shell Programming and Scripting
Hi all!
Looking for some help parsing filenames in bash. I have a directory full of files named "livingroom-110111105637.avi". The format is always date and time (yymmddhhmmss). I'm looking to parse the filenames so they are a little more easily readable. Maybe rename them to... (4 Replies)
Discussion started by: mtehonica
4 Replies
9. Shell Programming and Scripting
Shell script for the below operation :
File "A" contains :
SEQ++1'
MOA+9:000,00:ABC'
RFF+AIK:000000007'
FII+PH+0170++AA'
NAD+PL+++XXXXXXXXXXX XXXXXXX XX++XXX XXXX XXXX X.X. XXXXXXXXX+++NL'
SEQ++2'
MOA+9:389,47:ABC'
RFF+AIK:02110300000008'
FII+PH+0PSTBNL2A:25:5+BB'... (5 Replies)
Discussion started by: navojit dutta
5 Replies
10. Shell Programming and Scripting
I need help with a perl parsing script. I have some error logs on a windows machine that I need to parse from a text file, but I know nothing about perl. I usually run this bash script on my linux box and it does just what I need. How would I do the same thing with perl and port it to my windows... (2 Replies)
Discussion started by: cstovall
2 Replies