Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shorter version with sed to pure league #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cat file.txt
awk 1 file.txt
paste file.txt
pv -q file.txt
sed '' file.txt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was first proposed by @magisterquis in #23 (comment).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never thought to look for peoples comments only Pull requests for "duplicates" so first time i see i :)
Does that invalidate my contribution?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First to get it merged wins :)

grep '' file.txt
sort -m file.txt
look '' file.txt
Expand All @@ -21,6 +22,7 @@ sed '/*/p' file.txt
tail -n +1 file.txt
head -n -0 file.txt # GNU head
gcc -E -P -xc file.txt
less +G +Q -X file.txt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno, doesn't look much like sed to me. :P

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure isn't but is pure league noh? or do you want a separate PR on this?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeap probably good

@tomodachi do a lunch this week?!

comm file.txt /dev/null # BSD comm
cp file.txt /dev/stdout
scp file.txt /dev/stdout
Expand Down