Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
centos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platyhouse
centos
Commits
d96b6dd8
Commit
d96b6dd8
authored
Oct 24, 2025
by
platyhouse
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
eb9d0a92
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
ptyCatLastFile
ptyCatLastFile
+19
-0
ptyClear
ptyClear
+3
-0
No files found.
ptyCatLastFile
0 → 100755
View file @
d96b6dd8
#!/bin/bash
clear
&&
printf
'\e[3J'
# 현재 디렉토리에서 가장 최근에 생성된 파일 찾기
# (디렉토리 제외, 숨김 파일 포함)
latest_file
=
$(
find
.
-maxdepth
1
-type
f
-printf
'%T@ %p\n'
2>/dev/null |
sort
-n
|
tail
-1
|
cut
-d
' '
-f2-
)
# 파일이 없는 경우
if
[
-z
"
$latest_file
"
]
;
then
echo
"현재 폴더에 파일이 없습니다."
exit
1
fi
# 파일명과 내용 출력
echo
"파일명:
${
latest_file
#./
}
"
echo
"내용: "
cat
"
$latest_file
"
ptyClear
0 → 100755
View file @
d96b6dd8
#!/bin/bash
clear
&&
printf
'\e[3J'
platyhouse
@platyhouse
mentioned in commit
8587004b
·
Dec 16, 2025
mentioned in commit
8587004b
mentioned in commit 8587004bfbebb2ceff13804bc1eea04727f6a285
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment