find pathname -options
其中按文件名搜索文件时文件名一定要加“” 如:
find . -name "*.sh"
这条命令就是在当前目录以及子目录下搜索后缀名为sh的所有文件,如果不加“” 而且有不止一个匹配文件的话,就会出错
还有-exec参数,后边跟命令,可以对搜索到的文件进行相应操作,如:
find . -name "*.sh" -exec rm {} \;
这条命令就是在当前目录以及子目录下删除掉后缀名为sh的所有文件
墨衍会员
·
AI 创作全网分发
墨衍智能分发
本文由作者通过墨衍一键同步至各平台
1分发平台
600+累计阅读
668平均单平台
已同步平台
优快云
微信公众号
微博
知乎
掘金
百家号
博客园
抖音
小红书
你的文章也可以这样分发
墨衍会员 ¥399起/年,写一次发全网
我也要 →
码龄18年
find pathname -options
其中按文件名搜索文件时文件名一定要加“” 如:
find . -name "*.sh"
这条命令就是在当前目录以及子目录下搜索后缀名为sh的所有文件,如果不加“” 而且有不止一个匹配文件的话,就会出错
还有-exec参数,后边跟命令,可以对搜索到的文件进行相应操作,如:
find . -name "*.sh" -exec rm {} \;
这条命令就是在当前目录以及子目录下删除掉后缀名为sh的所有文件
Unity游戏开发客户端面经——数据结构(初级)
Unity游戏开发客户端面经 之 数据结构篇
Linux下查找.sh后缀的文件
find / -name *.sh或locate *.shfind 与locate的区别:locate 配合数据库查看文件位置 find 实际搜寻硬盘查询文件名称
ZEMAX知识点:坐标间断面(coordinate break)
zemax知识点:坐标间断面
linux系统——sh命令详解
一、sh概述sh是linux中运行shell的命令,是shell的解释器,是linux中壳层与命令行界面,用户可以在shell脚本输入命令来执行各种各样的任务。
手把手讲解RTX5操作系统在GD32F407上的移植
然后将GD32F4xx_Demo_Suites_V2.6.4\GD32407V_START_Demo_Suites\Projects\01_GPIO_Running_LED下面的main函数复制到我们的项目文件夹中;打开对应GD32407V_START_Demo_Suites的文件夹下面的Utilities,复制gd32f407v_start.c和gd32f407v_start.h文件到一开始项目保存的文件夹下面;为了验证我们的操作系统是否被正确添加,是否能够正确运行,我们需要添加示例文件;
学习海康VisionMaster之顶点检测
2:应用场景:海康VisionMaster的顶点检测功能在工业视觉检测中具有广泛的应用场景,尤其在精密制造、电子元件检测和机械加工等领域,其通过高精度定位物体的关键点(如角点、交点或边缘顶点)来实现自动化测量与质量控制。基本参数这里就是画ROI,设定跟踪参数和之前的工具是一样的方法,这里画的方向需要注意,如下图所示,边缘的扫描方向正好对应需要查找的边缘点。一个不是很规则的物体需要检测一个凸台的顶角坐标,其实靠边缘与边缘交点是不太稳定的,如下图所示,边缘很短,很容易产生误抓边缘。1:什么是顶点检测?
linux命令删除sh文件,Linux下面使用命令如何运行.sh文件的两种解决办法 删除windows.old文件夹的解决...
延伸:删除windows.old文件夹的解决办法描述:...行“,这样就以管理员身份运行了cmd. 然后就很简单啦: 1 rd /S /Q c:\windows.old 注意,运行该命令后它会提示某些目录非空,不要管它。 等这个命令完成后,再次运行一下以上命令。 这样基本上windows.old目录下面的文件都删除掉了。 最后再运行一次以上命令,经过这次以后,连windows.old这个目录本身也...
机器学习发展历史及现状(重要的期刊,会议,大牛总结)
1 引言 机器学习是指通过计算机学习数据中的内在规律性信息,获得新的经验和知识,以提高计算机的智能性,使计算机能够像人那样去决策。随着各行业对数据的需求量增多,对处理和分析数据的效率要求变高,一系列机器学习算法应运而生。机器学习算法主要是指通过数学及统计方法求解最优化问题的步骤和过程。针对不同的数据和不同模型需求,选择和使用适当的的机器学习算法可以更高效地解决一些实际问题。本文将从机器学习的起源...
深入探讨Shell命令:有效运用‘find‘进行文件搜索
本文深入探讨了Shell命令中功能强大的'find'命令,展示了如何在运维中有效利用该命令进行文件搜索和管理。通过实际示例,读者可以学习如何使用'find'命令查找并删除过期日志文件,并掌握相关技巧和最佳实践。
基于BEV(鸟瞰图)的3D检测:PointPillars与CenterPoint
基于BEV(鸟瞰图)的3D检测:PointPillars与CenterPoint ,人工智能,计算机视觉,大模型,AI,本文围绕基于BEV的3D检测,解析了PointPillars与CenterPoint两种算法。PointPillars用点柱特征编码网络处理点云,通过2D卷积网络提取特征,检测头为解耦头;CenterPoint将三维物体表为点,分两阶段检测,先找中心点及属性,再细化预测。两者都可借特定骨干网生成BEV特征图且基于BEV检测,但检测头设计和物体表示方式不同。
【Unity 实用工具篇】✨| I2 Localization 实现本地化及多种语言切换,快速上手
Unity的多语言本地化是一个很实用的功能,它可以帮助游戏支持多种语言,让不同语言的玩家都能够更好地体验游戏。 而实现本地化的方案也有很多种,各个方案之间也各有优劣,后面也会对多个方案进行介绍学习。 本文就来介绍一个专门作用于多语言本地化的插件:I2 Localization 。
Linux学习:shell 命令(软件安装和卸载)
(1)apt-get(ubuntu) 安装 tree 命令:sudo apt-get install tree 卸载 tree 命令:sudo apt-get remove tree 更新软件列表:sudo apt-get update 清空缓存: sudo apt-get clean (2)dpkg(ubuntu 中.deb 包,需要事先下载到本地) 安装:sudo dpkg -i xxx.deb 卸载:sudo dpkg -r xxx.deb (3)yum(centOS、Redhat) 安装:sudo
自监督学习原理与代码实战案例讲解
自监督学习原理与代码实战案例讲解 作者:禅与计算机程序设计艺术 1. 背景介绍 1.1 自监督学习的起源与发展 1.1.1 监督学习的局限性
find 命令的使用心得
好吧,终于开始面对了。其实还是因为要用到,不得不面对。 所有的shell 命令应该以后都会对使用到的部分,以自己的方式进行记录。 关于time的使用分析 首先确定三个time值 atime access time 访问时间 ctime change time 属性修改时间 mtime modify time 内容修改时间 三个的关系是: atime改变,mti
深度学习工具包 DeepLearningToolbox
深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[](https://bitdeli.com/free "Bitdeli Badge")
pscad IEEE标准系统搭建说明
pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。
2010-04-07 find命令使用心得、Windows远程登陆问题
一、find命令的两点使用心得 1.对搜索到的结果执行其它命令 find命令的-exec选项可以对搜索到的文件执行各种命令。例如,将当前目录下最后修改时间在100天以上的文件删除:find . -mtime +100 -...
OV9734 DATASHEET,完整规格书
OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等
Linux命令
1. 前言 大学毕业快一年了,经常看别人的博客,看着别人学习都很有条理,学什么都记录下来,所以自己也打算开始写属于自己的学习记录。而且很多时候有些技巧用到的时候上网查一下,下次又忘了,所以希望能够做好整理工作。 2. grep命令 刚刚参加工作的时候,对grep了解很少,但是工作中需要用的地方很多,所以就先来总结一下。 grep的功能有非常多,但是看代码却用不到那么多的高级功能,所以只
IMSL CNL 7.0.0 (x86-64)Crack
IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件
Linux关于find操作
作为一个想走IT 之路的人没有写过博客,没有分享精神,个
MTK工作心得&&改法之ubuntu常用指令
ubuntu赋权限: 可读可写可执行:4+2+1=7 最高权限为7 chmod -R 777 alps/.... (有sudo权限的可在最前边加上sudo) git常用命令:clone,branch,tag,pull,push,checkout,fetch,reset等 clone:从服务器上拉代码到本地,或者克隆一个
一些linux下的心得
主要是自己在实践中的小体会。本人菜鸟轻拍。ps:写着写着成杂谈了 20120522yum 安装 mysq要打 yum install mysql-server mysql-devel才行 20120522 apm -qa|grep 查看安装 前一段时间一直在学习linux 下的shell 脚本,系统学习了一些概念和命令。 例如sed 、awk 、s...
20145320《信息安全系统设计基础》期中总结
20145320《信息安全系统设计基础》期中总结 复习Linux命令,特别是man -k, cheat, grep -nr xxx /usr/include 复习vi, gcc, gdb,make的使用 复习教材内容ch01 ch02 ch03 ch04 ch06 ch07 复习前面的考题,下次考试考每次考试错的最多的题目 期中总结Blog内容: 自己新学到的知识点总结 自己的收获(不要假大空) ...
linux替换文本内容
今天工作的时候,需要给一些文件批量地替换文本,一个个文件修改太慢了,我上网查了一下,通过sed命令可以解决问题,具体如下:sed -i 's/mz\_sms\.htm/mz\_smseng\.htm/g' `grep 'mz\_sms\.htm' -rl lv*/smseng/login_main.htm`有几点需要注意的: 需要加-i,如果不加,不会替换 grep命令前的符号是tab键上面的反引号
Linux磁盘容量占比
记一次磁盘容量报警的排查心得。 收到磁盘报警提示某个目录下已占用85%的存储空间,对于开发来说这个时候就会要去看下具体是些什么文件占用了磁盘空间,在排查的过程中用到的相关命令记录在此。 1、文件系统空间使用情况 df -h查看所有的文件系统空间使用情况。 2、确定是目录下哪些文件占用的空间比较多find /data -type f -si...
Vim帮助文档
2019独角兽企业重金招聘Python工程师标准>>> ...
Linux 按时间批量删除文件
Linux 按时间批量删除文件(删除N天前文件) 需要根据时间删除这个目录下的文件,/home/wang/dicom/studies,清理掉10天之前的无效数据。 可以使用下面一条命令去完成: find /home/wang/dicom/studies-mtime +11 -name “.” -exec rm -Rf {} ; 这个是根据时间删除。 下面简要解释一下,这句shell命令: find /home/wang/dicom/studies -mtime +11-name “.” -exec rm -
20145317彭垚《信息安全系统设计基础》第1周学习总结
教材学习内容总结 Linux操作系统 Linux 免费或少许费用。 大都为开源自由软件,用户可以修改定制和再发布,由于基本免费没有资金支持,部分软件质量和体验欠缺;有全球所有的 Linux 开发者和自由软件社区提供支持。 要说 Linux 没有安全问题,那当然是不可能的,这一点仁者见仁智者见智,相对来说肯定比 Windows 平台要更加安全,使用 Linux 你也不用装某杀毒...
1860
2012

被折叠的 条评论
为什么被折叠?



