LogFAQs > #965195751

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, Database 10 ( 02.17.2022-12-01-2022 ), DB11, DB12, Clear
Topic List
Page List: 1
TopicITT: General Computer Coding Topic
BlingBling22947
05/21/22 3:40:13 AM
#23:


[LFAQs-redacted-quote]


I'm trying my best!
ChocoboMog123 posted...
For the first one: '>' is output redirection and will overwrite the output of the log-file, '>>' is the append command and adds the output to the end of the file listed. The first command also fails because cat tries to "read" files, and it's basically trying to read each space in the date as its own file. The third command wouldn't work because date is separated by semi-colon thus making it two different commands. Like I said, fourth command fails because it's not appending, it's overwriting. Thus it should be the second command.

For the second one:
The first command gives the word count of all files that start "war-" (I guess?).
Second command fails if there's more than 2 files that end in "txt" (I guess not).
Third command makes no sense.
Fourth is cut off, but redirect the content of war-and-peace.txt to wc. `cat war-and-peace.txt | wc -w` That works, for instance.
Fifth is the same as fourth with an extra step. Both of these might fail depending on what got cut off.
Sixth: no.
Seventh, yes.

My apologies on uploading a cutoff picture, but getting everything in one shot has proven difficult. Maybe I can reupload on a different device? I'll see how much more studying I can do later today though! Regardless, thank you so much, you've been a blessing!

---
When was the last time you heard your boy Nas rhyme?
Never on schedule but always on time
... Copied to Clipboard!
Topic List
Page List: 1