我在天马彩票平台输了三十万

Questions tagged [shell-script]

Questions about shell scripts, executable files that are interpreted by a shell (bash, zsh, etc.).

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

Shell Script to check DB space utilization [closed]

I'm writing a script to check the database utilization and mail. if the utilization for any DB reaches more than 88% it should send the mail. I'm new in writing script. Please help and suggest for ...
0
votes
1answer
43 views

find and delete fails in a loop

I am stuck on a search and delete file issue, in a loop. It fails on path not found. for f in $(cat delete.list) ; do find /old-stuff/files -name "$f" -exec rm -f {} \; done This results in the ...
0
votes
1answer
39 views

How to write script to run another script when content in file is modified

I would like to write a script to run another script. When receiving a file from another machine; for example, if content in that file is "a" run example.sh And that file is needed to be watched all ...
0
votes
4answers
67 views

Unix Shell program to detect which half of month is it. Day of month (dom) -le 16

Ultimate goal is to set up a variable that will be YYYYMMDD where DD is one of two variables (01 or 16) I am trying to accomplish creating a variable to be one of two values. here's what I have so ...
2
votes
1answer
28 views

inotifywait not responding to change in /proc/mounts

I'm trying to get notification of the state of a problematic sshfs mount I have tried two bash scripts while inotifywait -e modify /proc/mounts; do echo "modified" done and inotifywait -m /...
0
votes
0answers
14 views

Clarification on logrotate

I'm setting up logrotate for several services, and I'm a little confused. I would like to rotate logs for 7 days, tar anything older than that, and delete anything older than 10 days. Here is my ...
-2
votes
0answers
26 views

Shell Script Email Address Special Character [duplicate]

echo -e "Message Example." | mail -s "My Subject" -r "TOM<tom@eamil.com>" bb&my-Team@email.com bb&my-Team@email.com email has special character "&" and shell doesn't like it. ...
0
votes
2answers
38 views

Keeping the same record length when awk command adjusting certain data in the record

I have *.txt file with Header and Trailer. Trailer contains number of specific records. I am performing some file manipulation where I am removing certain records and I need to adjust Trailer record ...
4
votes
2answers
433 views

Efficient way to do calculations in bash

I'm trying to calculate the geometric mean of a file full of numbers (1 column). The basic formula for geometric mean is the average the natural log (or log) of all the values and then raise e (or ...
0
votes
2answers
41 views

Using fields from a playlist file and using them as arguments for a command

Example contents of the playlist file: 1. The fire is on - 03:50 2. Abc dge khji kkt mmy kdj - 09:20 3. Blowing in the winds - 14:16 4. By the rivers of Babylon - 15:46 5. Waka waka it's time for ...
0
votes
0answers
17 views

Convert 2 HTML file which is output from SQL query into 1 main HTML output file in shell script

In shell script, I used 2 different SQL query & output of these 2 files in HTML format like (eg- ab.html, cd.html). Before DML operation 1 SQL query will run then after DML operation another query ...
0
votes
1answer
45 views

How to run debug mode from sourced bash script?

I currently have two files, one is the main function and another one is core logic. The main function has sourced the code logic and access like a function. But my question had a problem in code logic,...
2
votes
3answers
240 views

How to count words of a specified number of Lines?

I faced an interesting question to count the words from a file where the number of lines were also specified as a command line argument. For example if the input text file had - Unix is an OS Linux ...
-2
votes
1answer
28 views

change status in database if data is older than 60 days (no delete operation)

I have database which contains name, date, and status. For now, the status is "0". Now, if the date attribute of the record is older than 60 days, then the status should change to '1', otherwise (...
-2
votes
0answers
46 views

Error while trying to use sudo with sed

I tried the following code to add a line of text at the end of the file that needs root privileges to edit it. sudo sed -i "$ a VAR=${var} PATH=${path} 0 0" /home/pi/test but it is throwing an error ...

15 30 50 per page
1 2 3 4 5 824
怎么样进入赌单双软件 手机棋牌输了几百万 怎么购买手机赌博软件 我爱彩票邀请码是多少 我想查查彩票开奖结果 快钱彩票官网 快乐棋牌游戏 手机版彩票过滤工具 怎么下载波克棋牌 快乐12任5遗漏数据