Skip to main content
Jeff Schaller's user avatar
Jeff Schaller's user avatar
Jeff Schaller's user avatar
Jeff Schaller
Moderator
  • Member for 9 years, 1 month
  • Last seen this week
117 votes
Accepted

Counting occurrences of word in text file

83 votes
Accepted

How can I replace a string in a previous command on the command-line?

75 votes
Accepted

Why is the wild card character * so different between the zip and rm commands?

67 votes
Accepted

Return owner of process given PID

43 votes
Accepted

How to delete the rest of each line after a certain pattern or a string in a file?

43 votes
Accepted

Is it true that a tarball can change where files are extracted to regardless of the commands used to extract it?

43 votes

What is the meaning of [[:space:]] in bash?

40 votes
Accepted

Linux shell script: Run a program only if it exists, ignore it if it does not exist

37 votes
Accepted

Bash - Integer expression expected

35 votes
Accepted

echo [9876543210] displays 1 4 5 6 ... why?

34 votes
Accepted

Running a command on many files

34 votes
Accepted

Display Spinner while waiting for some process to finish

34 votes

Non-root user getting root access after running "sudo vi /etc/hosts"

32 votes

rename files to change spaces to underscore

28 votes
Accepted

Simulate the running of a "make install" -- a "dry run" or simulator utility?

27 votes
Accepted

Remove extra header lines from file, except for the first line

27 votes

Bash multiplication and addition

27 votes
Accepted

How can I determine, within a shell script, whether it is being called by systemd or not?

24 votes
Accepted

Check all lines of a file are unique

23 votes
Accepted

Copy last n-lines from one file to another

22 votes
Accepted

How to know if extglob is enabled in the current bash session?

22 votes
Accepted

What's with all the renames: prename, rename, file-rename?

21 votes
Accepted

Where is .bashrc file found in Linux?

21 votes
Accepted

How call a function inside another function

21 votes
Accepted

How to insert a string into a text variable at specified position

21 votes

How to get only the version number of PHP using shell commands?

21 votes
Accepted

Why is this number matched with this regex?

20 votes

ls -d command only returns `.` eg, and no child directories

19 votes

Allow bash script to be run as root, but not sudo

19 votes

How to list *.tar.gz, one filename per line?

1
2 3 4 5
61