LinuxCommandLibrary

tuc

Translate Unicode characters to other encodings

TLDR

Cut and rearrange fields

$ echo "foo bar baz" | tuc [[-d|--delimiter]] '[ ]' [[-f|--fields]] [3,2,1]
copy

Replace the delimiter space with an arrow
$ echo "foo bar baz" | tuc [[-d|--delimiter]] ' ' [[-r|--replace-delimiter]] ' ➡ '
copy

Keep a range of fields
$ echo "foo bar baz" | tuc [[-d|--delimiter]] ' ' [[-f|--fields]] [2:]
copy

Cut using regular expressions
$ echo "a,b, c" | tuc [[-e|--regex]] '[[, ]+]' [[-f|--fields]] [1,3]
copy

Emit JSON output
$ echo "foo bar baz" | tuc [[-d|--delimiter]] '[ ]' --json
copy

SYNOPSIS

touch [OPTION]... FILE...

PARAMETERS

-a
    Change only the access time.

-c, --no-create
    Do not create any files that do not exist.

-d, --date=STRING
    Parse STRING and use it as the modification and access times.

-f
    Ignored; for compatibility with BSD versions of touch.

-m
    Change only the modification time.

-r, --reference=FILE
    Use FILE's times instead of the current time.

-t STAMP
    Use [[CC]YY]MMDDhhmm[.ss] instead of the current time.

--time=WORD
    Change the specified time: WORD is access, atime, or use to change the access time; modification or mtime to change the modification time.

--help
    Display a help message and exit.

--version
    Output version information and exit.

DESCRIPTION

The tuc command is not a standard Linux utility. It's likely a custom or mis-typed command. Standard Linux systems offer the 'touch' command for creating empty files, updating the access and modification times of existing files or directories.

Assuming it refers to the touch command:
The touch command is a fundamental utility used to update the access and modification times of existing files. If a file does not exist, touch creates an empty file with those times set to the current time. It is commonly used in scripts and build processes to manage dependencies based on file modification times or to simply create empty files for later use. The touch command can update modification and access times to specific dates and times, or set all command-line arguments' files to have the times specified. It's important to remember the touch command does not affect the content of an existing file; it only updates its metadata.

EXAMPLES

Create an empty file named 'newfile.txt':
touch newfile.txt

Update the access and modification times of 'existingfile.txt' to the current time:
touch existingfile.txt

Update access time:
touch -a existingfile.txt

Update modification time:
touch -m existingfile.txt

SEE ALSO

stat(1), find(1)

Copied to clipboard