<commit_before>#!/usr/local/bin/tcsh -f
#################################################################
#								#
# Copyright (c) 2017-2018 YottaDB LLC. and/or its subsidiaries.	#
# All rights reserved.						#
#								#
#	This source code contains the intellectual property	#
#	of its copyright holder(s), and is made available	#
#	under a license.  If you do not know the terms of	#
#	the license, please stop and do not read further.	#
#								#
#################################################################

# SELinux adds a . at the end of the permissions column in an ls -l output.
# But test reference files that rely on ls -l output need to not see the dot.
# This script helps by removing the dot from the ls -l output.
# For example "-rwxr-xr-x." gets changed to "-rwxr-xr-x"

# All test scripts that do an "ls -l" and redirect that output to a test reference file need to use
# "$gtm_tst/com/lsminusl.csh" instead to have a portable reference file.

ls -l $* | $tst_awk '{if ($1 ~ /[-l].*\./) gsub("\\.","",$1); print $0}'<commit_msg>Fix r124/ydb282srcsrvrerr subtest failure on SELinux due to lsminusl.csh not working for directories (#337)<commit_after>#!/usr/local/bin/tcsh -f
#################################################################
#								#
# Copyright (c) 2017-2018 YottaDB LLC. and/or its subsidiaries.	#
# All rights reserved.						#
#								#
#	This source code contains the intellectual property	#
#	of its copyright holder(s), and is made available	#
#	under a license.  If you do not know the terms of	#
#	the license, please stop and do not read further.	#
#								#
#################################################################

# SELinux adds a . at the end of the permissions column in an ls -l output.
# But test reference files that rely on ls -l output need to not see the dot.
# This script helps by removing the dot from the ls -l output.
# For example "-rwxr-xr-x." gets changed to "-rwxr-xr-x"

# All test scripts that do an "ls -l" and redirect that output to a test reference file need to use
# "$gtm_tst/com/lsminusl.csh" instead to have a portable reference file.

ls -l $* | $tst_awk '{if ($1 ~ /[-ld].*\./) gsub("\\.","",$1); print $0}'
{'fraction_non_alphanumeric': 0.22126306224443434, 'fraction_numerical': 0.014084507042253521, 'mean_word_length': 3.5308641975308643, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7272125', 'n_tokens_mistral': 750, 'n_tokens_neox': 665, 'n_words': 282}