Skip to content

Commit 0a13117

Browse files
committed
Add a 'directory' argument
1 parent 3da9248 commit 0a13117

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

specs/du/find_biggest_files.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@
33
name: Find the largest 10 files in a directory
44
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
55
command: |-
6-
du -ah | sort -hr | head -n 10
6+
du -ah {{directory}} | sort -hr | head -n 10
77
# Any tags that the workflow should be categorized with.
88
tags:
99
- du
1010
# A description of the workflow.
1111
description: Uses 'du' command to find file and directory sizes in the current working directory, then sorts by size and displays 10 largest files
12+
# List of arguments within the command.
13+
arguments:
14+
# Name of the argument within the command. This must exactly match the name of the argument
15+
# within the command (without the curly braces).
16+
- name: directory
17+
# The description of the argument.
18+
description: The name of the directory where you want to find files
19+
# The default value for the argument.
20+
default_value: .
1221
# The source URL for where the workflow was generated from, if any.
1322
source_url: "https://linuxhandbook.com/find-biggest-files-linux/"
1423
# The author of the workflow.

0 commit comments

Comments
 (0)