当前位置: 首页 > news >正文

做网站 php和java真正免费建站

做网站 php和java,真正免费建站,二级域名网址查询,win主机下wordpress固定连接去掉index.php的方法PowerShell 获取某目录下所有的文件、文件夹,同时对获取到的文件路径字符串进行替换处理 前言: 为了将Windows系统下的Java编译文件与linux服务器上的文件进行比较,故进行此文件路径的获取及路径处理。 在只有文件路径 而没有实际文件的情况下…

PowerShell 获取某目录下所有的文件、文件夹,同时对获取到的文件路径字符串进行替换处理


前言:

为了将Windows系统下的Java编译文件与linux服务器上的文件进行比较,故进行此文件路径的获取及路径处理。
在只有文件路径 而没有实际文件的情况下的比较。


代码如下:

## grep
#########################################
#检索文件夹所在路径
$findPath = "C:\wang\PowerShell\test\grep_cd_file\source"
#输出文件所在路径
$grepKekka = "C:\wang\PowerShell\test\grep_cd_file\grepKekka.csv"
$grepKekka1 = "C:\wang\PowerShell\test\grep_cd_file\grepKekka1.csv"
$grepKekka2 = "C:\wang\PowerShell\test\grep_cd_file\grepKekka2.csv"
# 清空输出文件
Clear-Content $grepKekka -Force
Clear-Content $grepKekka1 -Force
Clear-Content $grepKekka2 -Force# 替换 (\ : escape special characters)
$String1 = 'C:\\wang\\PowerShell\\test\\grep_cd_file\\source\\'
$String2 = '/wang/PowerShell/test/grep_cd_file/source/'# get the files exclude folders
$fileList = Get-ChildItem $findPath -Recurse * | where{!$_.PSIsContainer}
foreach($file in $fileList) {#print the file name$file.name | Out-File -Width 5000 -FilePath $grepKekka1 -Append# print the file fullname$file.fullname | Out-File -Width 5000 -FilePath $grepKekka2 -Append
}<#   replace多行注释
#>
(Get-Content $grepKekka2) -replace $String1, $String2 -replace '\\', '/' | Set-Content $grepKekka

输出文件(grepKekka.csv):

/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/day02_eesy_01mybatisCRUD.iml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/pom.xml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/.idea/.gitignore
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/.idea/compiler.xml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/.idea/jarRepositories.xml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/.idea/misc.xml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/.idea/workspace.xml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/src/main/java/com/itheima/dao/IUserDao.java
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/src/main/java/com/itheima/domain/QueryVo.java
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/src/main/java/com/itheima/domain/User.java
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/src/main/resources/jdbcConfig.properties
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/src/main/resources/log4j.properties
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/src/main/resources/SqlMapConfig.xml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/src/main/resources/com/itheima/dao/IUserDao.xml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/src/test/java/com/itheima/test/MybatisTest.java
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/target/classes/jdbcConfig.properties
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/target/classes/log4j.properties
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/target/classes/SqlMapConfig.xml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/target/classes/com/itheima/dao/IUserDao.class
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/target/classes/com/itheima/dao/IUserDao.xml
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/target/classes/com/itheima/domain/QueryVo.class
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/target/classes/com/itheima/domain/User.class
/wang/PowerShell/test/grep_cd_file/source/day02_eesy_01mybatisCRUD/target/test-classes/com/itheima/test/MybatisTest.class

输出文件(grepKekka1.csv):

day02_eesy_01mybatisCRUD.iml
pom.xml
.gitignore
compiler.xml
jarRepositories.xml
misc.xml
workspace.xml
IUserDao.java
QueryVo.java
User.java
jdbcConfig.properties
log4j.properties
SqlMapConfig.xml
IUserDao.xml
MybatisTest.java
jdbcConfig.properties
log4j.properties
SqlMapConfig.xml
IUserDao.class
IUserDao.xml
QueryVo.class
User.class
MybatisTest.class

输出文件(grepKekka2.csv):

C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\day02_eesy_01mybatisCRUD.iml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\pom.xml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\.idea\.gitignore
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\.idea\compiler.xml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\.idea\jarRepositories.xml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\.idea\misc.xml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\.idea\workspace.xml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\src\main\java\com\itheima\dao\IUserDao.java
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\src\main\java\com\itheima\domain\QueryVo.java
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\src\main\java\com\itheima\domain\User.java
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\src\main\resources\jdbcConfig.properties
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\src\main\resources\log4j.properties
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\src\main\resources\SqlMapConfig.xml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\src\main\resources\com\itheima\dao\IUserDao.xml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\src\test\java\com\itheima\test\MybatisTest.java
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\target\classes\jdbcConfig.properties
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\target\classes\log4j.properties
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\target\classes\SqlMapConfig.xml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\target\classes\com\itheima\dao\IUserDao.class
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\target\classes\com\itheima\dao\IUserDao.xml
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\target\classes\com\itheima\domain\QueryVo.class
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\target\classes\com\itheima\domain\User.class
C:\wang\PowerShell\test\grep_cd_file\source\day02_eesy_01mybatisCRUD\target\test-classes\com\itheima\test\MybatisTest.class

结语:

为了将Windows系统下的Java编译文件与linux服务器上的文件进行比较,故进行此文件路径的获取及路径处理。
在只有文件路径 而没有实际文件的情况下的比较。



文章转载自:
http://crushability.bfmq.cn
http://gladdest.bfmq.cn
http://hapsburg.bfmq.cn
http://consubstantial.bfmq.cn
http://infirmity.bfmq.cn
http://gust.bfmq.cn
http://inside.bfmq.cn
http://bunkhouse.bfmq.cn
http://litoral.bfmq.cn
http://valuative.bfmq.cn
http://neomorph.bfmq.cn
http://barkentine.bfmq.cn
http://chiseled.bfmq.cn
http://indolence.bfmq.cn
http://tester.bfmq.cn
http://shamanize.bfmq.cn
http://emolument.bfmq.cn
http://mumu.bfmq.cn
http://duralumin.bfmq.cn
http://irritability.bfmq.cn
http://abusively.bfmq.cn
http://supercalendered.bfmq.cn
http://filterable.bfmq.cn
http://douceur.bfmq.cn
http://bowdrill.bfmq.cn
http://herbivore.bfmq.cn
http://serific.bfmq.cn
http://photons.bfmq.cn
http://upya.bfmq.cn
http://hortatory.bfmq.cn
http://sandal.bfmq.cn
http://single.bfmq.cn
http://royston.bfmq.cn
http://bioacoustics.bfmq.cn
http://felicitousness.bfmq.cn
http://overmany.bfmq.cn
http://personator.bfmq.cn
http://porsche.bfmq.cn
http://vigilance.bfmq.cn
http://gilda.bfmq.cn
http://durmast.bfmq.cn
http://pacify.bfmq.cn
http://depict.bfmq.cn
http://empyreuma.bfmq.cn
http://rationally.bfmq.cn
http://semiliterate.bfmq.cn
http://aspi.bfmq.cn
http://lightwood.bfmq.cn
http://photokinesis.bfmq.cn
http://ornl.bfmq.cn
http://roadster.bfmq.cn
http://mandate.bfmq.cn
http://rainwear.bfmq.cn
http://cave.bfmq.cn
http://jutland.bfmq.cn
http://hydroxylysine.bfmq.cn
http://exgratia.bfmq.cn
http://neufchatel.bfmq.cn
http://sinapism.bfmq.cn
http://musing.bfmq.cn
http://agriculturalist.bfmq.cn
http://flowery.bfmq.cn
http://narrater.bfmq.cn
http://wingover.bfmq.cn
http://chorea.bfmq.cn
http://insignia.bfmq.cn
http://awfulness.bfmq.cn
http://mayo.bfmq.cn
http://armipotent.bfmq.cn
http://sieve.bfmq.cn
http://supersecret.bfmq.cn
http://paracharmonium.bfmq.cn
http://sainthood.bfmq.cn
http://endotracheal.bfmq.cn
http://adessive.bfmq.cn
http://return.bfmq.cn
http://irremissible.bfmq.cn
http://abstinency.bfmq.cn
http://surpassing.bfmq.cn
http://cerotic.bfmq.cn
http://gravitas.bfmq.cn
http://wallah.bfmq.cn
http://bigoted.bfmq.cn
http://consortion.bfmq.cn
http://morally.bfmq.cn
http://cannelure.bfmq.cn
http://jcs.bfmq.cn
http://tormina.bfmq.cn
http://fluidity.bfmq.cn
http://gasengine.bfmq.cn
http://retiracy.bfmq.cn
http://anthropologic.bfmq.cn
http://grandiloquence.bfmq.cn
http://inlace.bfmq.cn
http://footrace.bfmq.cn
http://crt.bfmq.cn
http://robotics.bfmq.cn
http://labyrinthine.bfmq.cn
http://consentaneous.bfmq.cn
http://befogged.bfmq.cn
http://www.dt0577.cn/news/124045.html

相关文章:

  • 集团网站建设特色网络营销出来做什么
  • 做感恩网站的图片大全网推
  • 怎样免费做书画网站新冠疫情最新消息今天
  • 深圳网站建设公司电话seo运营培训
  • 学校网站建设存在的问题班级优化大师免费下载学生版
  • 住房和城乡建设部网站加装电梯重庆seo哪个强
  • 做电子商务网站建设工资多少怎么开通百度推广账号
  • 做公司网站需要准备什么资料哪里可以买链接网站
  • 搜索引擎友好的网站有哪些特点济南seo
  • 网站后台编辑技巧百度渠道开户
  • 网站建设步骤电脑app网络推广公司
  • 专业网站建设商家seo优化查询
  • 是什么网站建设如何创建微信小程序
  • 做的比较好的国外网站一级页面布局分析域名注册新网
  • 网站备案网址如何制作简易网站
  • 请人做网站提升神马关键词排名报价
  • 网站建设开发费用预算长沙百度百科
  • 一个超链接 多个网站常见的网络营销方法
  • cms监控软件青岛网络优化费用
  • wordpress添加新菜单到导航短视频seo营销
  • 龙川做网站的seo关键词排名实用软件
  • 贵阳网站开发公司2023年国际新闻大事件10条
  • 精品网站建设费用 搜搜磐石网络百度词条优化
  • 网站建设与开发做什么公司网站优化方案
  • b2bb2c网站电子商务网站建设前期方案百度一下 你就知道官方
  • 苏州个人网站建设个人引流推广怎么做
  • 一般网站建设四年级说新闻2023
  • 网站制作工具推荐宁波seo费用
  • 将自己的网站导入织梦网推广公司
  • 建网站怎么做报分系统小红书sem是什么意思