Re: tr manpage typo?

2025-01-28 Thread Tomas Rippl
Hi and thank to all of you responding. My explanation and understanding: myfile.txt example: Hello guys  <= one space here Anybody  from Europe?  <= two spaces between Anybody and from tr -c "[:alpha:]" "\n" < myfile.txt myfile.txt is INPUT tr finds the complement to :alpha: and replaces them b

Changing the home directory

2025-01-28 Thread Tomas Rippl
I tried to change the user2's home directory from /home/user2 to /home/user2/MyWD. I did this by altering the sixth field of /etc/ passwd of this user's record. However, it did not work (user2 still ends up in /home/user2 after login or when I issue su -l user2 while being logged in as user1. I als

tr manpage typo?

2025-01-28 Thread tomas . rippl
Studying UNIX as a newbie (and using OpenBSD 7.6 and the UNIX made easy book for that) I think I found a typo in tr manpage. In the DESCRIPTION of the -s option they say that it "queezes multiple occurrences of the characters listed in the last operand (either string1 or string2) in the input into

rw- directory mode : different ls behavior

2024-09-17 Thread tomas . rippl
Hello, I am studying OpenBSD and I am currently working on file mods and the chmod(1) command. In that context, I have come across a behavior that I don't understand. My test directory contains two files: ll.out and power.exe. $ chmod 600 my-test-dir $ ls -ld my-test-dir/ drw---  2  user  us