在使用tablesorter css默认主题时,如果我避免设置表格宽度,我会得到一个漂亮的表格,所有列都完美地调整到最长的字段.但是,如果我添加过滤器小部件,所有列都会显示比以前更宽的空间,并且有很多空白空间.有时文本列被包装,而其他列看起来几乎是空的.
可以避免这种行为吗?谢谢!
我有一张带发票的桌子:
invoice_num, customer_ID, usd
1 A 15.2
2 B 3.6
3 A 105.1
4 C 6.0
Run Code Online (Sandbox Code Playgroud)
我需要一份报告显示所有记录(发票)并为每位客户添加小计.我知道如果我只显示每个客户的总数(使用GROUP BY customer_ID和WITH ROLLUP),但是我需要保留详细信息,所以我无法对这些行进行分组.所需的输出是:
invoice_num customer_ID usd
1 A 15.2
3 A 105.1
Total customer A 120.3
2 B 3.6
Total customer B 3.6
4 C 6.0
Total customer C 6.0
Total customers 129.9
Run Code Online (Sandbox Code Playgroud)
谢谢,
我需要通过源调用检查 bash 脚本的运行,如下所示:
#!/bin/bash
some code here
source script_b.sh
more code here
Run Code Online (Sandbox Code Playgroud)
我跑:
$bash -x script_a.sh
Run Code Online (Sandbox Code Playgroud)
我得到,
+ some echo here
+ script_b.sh
+ some more echo here
Run Code Online (Sandbox Code Playgroud)
但所有回显都来自 script_a.sh。script_b.sh 中的所有代码都是隐藏的,因此我无法追踪到底发生了什么。
有什么方法可以检查 script_a.sh 中 script_b.sh 的执行情况吗?