文件A: a f b e c d 文件B: b c a 目的:A包含B,找出A中有但B中没有的部分 代码: 首先利用dos2unix命令将windows文件转换为unix文件 dos2unix a.txt b.txt 方法一: sort a.txt b.txt |uniq -u 输出结果: d e f g k 方法二: grep -vf b.txt a.txt 输出结果: d e f k g 方法一为按字符串排序后输出,方法二位按照原序输出
原文地址:How to make your React Native app respond gracefully when the keyboard pops up 原文作者:Spencer Carli 译文出自:掘金翻译计划 译者:rccoder 校对者:atuooo.ZiXYu 在使用 React Native 应用时,一个常见的问题是当你点击文本输入框时,键盘会弹出并且遮盖住输入框.就像这样: 有几种方式可以避免这种情况发生.一些方法比较简单,另一些稍微复杂.一些是可以自定义的,一些是不
linux上面使用很方便的收发邮件客户端(即MUA),还有一个是mail,大家也可以试试. 在网上找了很多,都说需要msmtp配合使用,其实mutt里面也内建了smtp支持的. mutt and SMTP mutt can't speak SMTP ... wait, it can ... ... or why mutt should not but slowly becomes an "all-in-1" program. mutt was developed with the co