Joomla 2.5模板语言重写不起作用(Joomla 2.5 template language override not working)
如何为我的模板指定一个语言重写以便Joomla! 使用它?
它是COM_STORELOCATOR组件的特定语言标记。
<languages folder="language"> <language tag="en-GB">en-GB/en-GB.tpl_XXX.ini</language> </languages>
How do I need to specify a language override for my template in order for Joomla! to use it?
It's specific language tags for the COM_STORELOCATOR component.
<languages folder="language"> <language tag="en-GB">en-GB/en-GB.tpl_XXX.ini</language> </languages>
原文:https://stackoverflow.com/questions/11993477
更新时间:2023-10-25 09:10
最满意答案
grep -L -Z -r 'Subject: \[SPAM\]' . | xargs -0 -I{} mv {} DIR
-Z表示在文件名后输出零(\ 0)(因此空格不会用作分隔符)。
xargs -0
意味着将\ 0定义为分隔符。
然后
-I{} mv {} DIR
意思是用文件名替换
{}
,所以你得到mv filenames DIR
。grep -L -Z -r 'Subject: \[SPAM\]' . | xargs -0 -I{} mv {} DIR
The -Z means output with zeros (\0) after the filenames (so spaces are not used as delimeters).
xargs -0
means interpret \0 to be delimiters.
Then
-I{} mv {} DIR
means replace
{}
with the filenames, so you getmv filenames DIR
.
相关问答
更多-
LINUX 如何查看JPG文件[2022-06-13]
find -
使用匹配单词和非单词字符之间的单词边界\b , string = c("apple", "apples", "applez") grep("\\bapple\\b", string) [1] 1 要么 使用锚点。 ^断言我们是在开始。 $断言我们在最后。 grep("^apple$", string) [1] 1 你可以将正则表达式存储在一个变量中,然后像下面一样使用它。 pat <- "\\bapple\\b" grep(pat, string) [1] 1 pat <- "^apple$" grep ...
-
使用grep来查找文件中的内容,如果匹配则移动它们(Use grep to find content in files and move them if they match)[2023-07-14]
grep -L -Z -r 'Subject: \[SPAM\]' . | xargs -0 -I{} mv {} DIR -Z表示在文件名后输出零(\ 0)(因此空格不会用作分隔符)。 xargs -0 意味着将\ 0定义为分隔符。 然后 -I{} mv {} DIR 意思是用文件名替换{} ,所以你得到mv filenames DIR 。 grep -L -Z -r 'Subject: \[SPAM\]' . | xargs -0 -I{} mv {} DIR The -Z means outp ... -
在文件中查找文本,然后将这些文件移动到新位置[重复](Find text in files and than move those files into new location [duplicate])[2021-10-08]
要将所有匹配的文件复制到您可以编写的目录: grep -rl "" /path | xargs cp -t /path/to/destination To copy all matching files to a directory you can write: grep -rl " " /path | xargs cp -t /path/to/destination -
使用grep --exclude / - 包含语法来不覆盖某些文件(Use grep --exclude/--include syntax to not grep through certain files)[2024-05-01]
使用shell globbing语法: grep pattern -r --include=\*.{cpp,h} rootdir --exclude的语法是相同的。 请注意,星号用反斜杠转义,以防止它被shell扩展(引用它,如--include="*.{cpp,h}" ,也可以正常工作)。 否则,如果当前工作目录中有任何文件与模式匹配,则命令行将扩展为像grep pattern -r --include=foo.cpp --include=bar.h rootdir ,该文件只会搜索文件命名为foo.c ... -
一起使用find grep(Using find grep together)[2021-09-15]
你可以在grep使用这个正则表达式: find . -type f -exec grep -El '^[[:blank:]]*[A-Z].*![[:blank:]]*$' {} + You can use this regex in grep: find . -type f -exec grep -El '^[[:blank:]]*[A-Z].*![[:blank:]]*$' {} + -
通过grep查找文件(Find through grep to file)[2023-08-03]
如果我做得不对,就像: find dir -type f -exec file {} + | grep -Ev ':\s*ASCII text|empty' 将列出非ASCII text或empty 。 如果您需要提前grep文件名: find dir -type f -print | grep -v 'pattern' | file -b -f - If I underdstand right, something like: find dir -type f -exec file {} + | g ... -
有很多方法可以实现这一点,但一个简单的方法是采用FILE2每一行,然后在FILE1为此进行grep 。 while read -r LINE; do if ! grep "^$LINE " FILE1; then echo $LINE; fi; done < FILE2 或者,如果您愿意,可以先录制文件: cat FILE2 | while read -r LINE; do if ! grep "^$LINE " FILE1; then echo $LINE; fi; done 如果FILE1中没有匹配 ...
-
将其另存为search.sh ,根据您的环境更新SEARCH_DIR : #!/bin/bash SEARCH_DIR=some/dir/here while read filename do if [ -z "$(grep -lr $filename $SEARCH_DIR)" ] then echo $filename fi done 然后: chmod +x search.sh ./search.sh files- ...
-
您可以使用以下find命令: find . -name "*report*" *匹配任何东西(甚至是空字符串)。 因此,此表达式匹配所有名称,如XXXXreportYYYY 。 引号的使用是为了避免bash扩展(尝试echo *并看看会发生什么! - 如何在bash中转义通配符/星号?可能有帮助)。 You can use the following find command: find . -name "*report*" * matches anything (even the empty stri ...