LogFAQs > #965165420

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
ChocoboMog123
05/19/22 9:12:07 PM
#21:


BlingBling22947 posted...
Thank you so much for confirming the commands for me! I really just dont want to get any graded question wrong.https://gamefaqs.gamespot.com/a/user_image/4/4/9/AACH0nAADP35.jpg https://gamefaqs.gamespot.com/a/user_image/4/5/0/AACH0nAADP36.jpg ^ Can anyone help me with any of those two?
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.

---
"You're sorely underestimating the power of nostalgia goggles." - adjl
http://www.smbc-comics.com/comics/20110218.gif
... Copied to Clipboard!
Topic List
Page List: 1