All posts by Tuna Peyo

Remove duplicate lines from a text file

Jun 4,93

The uniq command is used to remove duplicate lines from a text file in Linux. By default, this command discards all …

Read More

Show the full path of shell commands

Jun 4,93

The which command shows the full path of shell commands in Linux. This command searches only paths set in the …

Read More

until loop

Jun 3,93

The until loop executes the commands between the do and done statements as long as the tested condition is false. …

Read More

while loop

Jun 3,93

The while loop executes the commands between the do and done statements as long as the tested condition is true. …

Read More

for loop

Jun 3,93

Loops are used to perform actions over and over again until a condition is met (or until a condition is …

Read More

case statement

Jun 3,93

The case statement is often used when more than two outcomes are possible. Here is the syntax: case $VARIABLE in …

Read More
Geek University 2022