首页
\
问答
\
awk命令:如何告诉它区分空格和制表符分隔符(awk command: how to tell it to distinguish between space and tab delimiter)
awk命令:如何告诉它区分空格和制表符分隔符(awk command: how to tell it to distinguish between space and tab delimiter)
我使用这个命令,
awk '{print $1}' "$line"
,从一个看起来像这样的文件中获取一列数据:(下划线表示制表符作为分隔符,例如是三列数据)Joe Jonas_____8_____45 Cersei Lann_____4_____23 Bo Tox_____6_____28 Mis Ter Yo_____7_____89
当我运行命令时,说要获取第一列,但输出显示如下:
Joe Cersei Bo Mis
如何使命令忽略第一列数据中的空格?
I used this command,
awk '{print $1}' "$line"
, to get a column of data from a file that looks like this:(underscores represent tab as a delimiter, example is a three-column data)Joe Jonas_____8_____45 Cersei Lann_____4_____23 Bo Tox_____6_____28 Mis Ter Yo_____7_____89
When I run the command, say to get the first column, the output, however, showed it like this:
Joe Cersei Bo Mis
How can I make the command to ignore the spaces within the data of the first column?
原文:https://stackoverflow.com/questions/38473781
更新时间:2024-02-21 14:02
最满意答案
要使模态起作用,您应该包括:
- jQuery的
- 引导-min.js
Bootstrap使用模态中的自定义属性来查找和应用javascript功能。 您不需要自己编写绑定。
To get the modal to work you should include:
- jquery
- bootstrap-min.js
Bootstrap uses the custom attributes in the modal to find and apply the javascript functionality. You do not need to write the binding yourself.
相关问答
更多-
只需在您的文档头部的jQuery load事件中打包要在页面加载中调用的模态,并且弹出如下所示: JS HTML利用元素iframewindow.onload等待加载所有图像。 准备好文件 $(function(){ $('#myModal').modal('show'); }); 或删除隐藏类并忘记JavaScript window.onload waits for all the images to load. Use document ready $(function(){ $('#myModal').modal('show'); }); or delete the hide class and forget ...
在页面加载时显示模态(Modal showing on page load)[2023-11-16]
更新:既然我可以看到你的小提琴,我已经修改了我的答案。 请看这里的工作叉: http : //jsfiddle.net/JXHAt/3/ 好的,第三次是魅力。 通过消除#modalcontainer,我更容易做到这一点。 相反,要显示.modalbox ,您只需隐藏当前的.modalbox-active ,然后将.modalbox-active添加到要显示的目标。 Update: Now that I can see your Fiddle, I have revised my answer. See th ...要使模态起作用,您应该包括: jQuery的 引导-min.js Bootstrap使用模态中的自定义属性来查找和应用javascript功能。 您不需要自己编写绑定。 To get the modal to work you should include: jquery bootstrap-min.js Bootstrap uses the custom attributes in the modal to find and apply the javascript functionality. You ...$('#myModal').modal('hide') 尝试这个 http://twitter.github.com/bootstrap/javascript.html#modals $('#myModal').modal('hide') try this http://twitter.github.com/bootstrap/javascript.html#modals正如@ madalin-ivascu的评论,默认情况下,引导程序不会移动模态代码。 在那个评论之后,我在整个代码库中搜索了对.modal任何引用,发现我正在使用的JS库正在移动它。 As @madalin-ivascu's comment, it turns out by default bootstrap doesn't move modal code. After that comment, I searched my whole codebase for any reference to .modal ...这就是设置差距的原因: .modal-overflow.modal.fade.in { top:1% } 如果你将其设置为0,你将删除差距 this is what's setting the gap on top: .modal-overflow.modal.fade.in { top:1% } if you set that to 0 you'll delete the gapHTML5模态对话框在页面加载时很快显示,我该如何阻止它?(HTML5 Modal Dialog is showing shortly on page load, how can i stop this?)[2023-09-12]
你能不能设置visibility: hidden ,然后在不透明动画点击之前显示它? Couldn't you set visibility: hidden and then show it before the opacity animations onclick?您可能需要在路由或状态更改时使用$ interval.cancel(your_interval)停止间隔,请参阅此答案 “如何跟踪路由或状态更改?” 并查看$ interval文档 $ interval.cancel()。 希望这能解决你的问题。 You might need to stop interval using $interval.cancel(your_interval) on route or state change please see this answer for "How to tr ...相关文章
更多- storm client command
- 微信Tab页切换
- linux shell awk 语法
- 微信Tab页
- java.lang.OutOfMemoryError: Java heap space 的解决方案
- 《Windows 命令行详解手册(第2版)》(Windows Command-Line Administrator's Pocket Consultant, 2nd Edition)扫描版[PDF]
- ext TabPanel如何限制打开的最大tab数量
- bash: scp: command not found的解决方法
- 如何实现:一个Tab中的List点击某个Item后想把该项添加到另一个tab中的ListView中?
- Ext4.1 Tab组件双击页签关闭
最新问答
更多- h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
- 创建一个功能(Create a function)
- 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
- PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
- Qt冻结循环的原因?(Qt freezing cause of the loop?)
- TableView重复youtube-api结果(TableView Repeating youtube-api result)
- 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
- SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
- 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
- 以编程方式创建UITableView(Creating a UITableView Programmatically)
- 如何打破按钮上的生命周期循环(How to break do-while loop on button)
- C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
- 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
- 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
- Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
- 设置kotlin扩展名(Setting a kotlin extension)
- 如何并排放置两个元件?(How to position two elements side by side?)
- 如何在vim中启用python3?(How to enable python3 in vim?)
- 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
- 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
- Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
- dedecms如何安装?
- 在哪儿学计算机最好?
- 学php哪个的书 最好,本人菜鸟
- 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
- 如何覆盖错误堆栈getter(How to override Error stack getter)
- 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
- USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
- 电脑高中毕业学习去哪里培训
- 正则表达式验证SMTP响应(Regex to validate SMTP Responses)