LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Skaperen
User Name
Password

Notices


Old

A feature i would like to add to head and tail

Posted 03-10-2021 at 08:39 PM by Skaperen

i would like to add a -m option to both the head and tail commands. it would be a regex match where head will output until it has a line that matches and tail will output from after the last line that matches, to the EOF. an option -M can be an inclusive variant that also outputs the matched line in the proper order. another option might be picked to do non-regex matching.
Senior Member
Posted in Uncategorized
Views 395 Comments 1 Skaperen is offline
Old

A feature i have never liked

Posted 03-09-2021 at 06:07 AM by Skaperen

there is a feature in Linux i have never liked. it's in other Unix/POSIX system's, too, so it's not Linux specific. as far as i recall, it predated Linux. the feature in the "mv" command. if you name a directory as the target of a move, it puts the file (or whatever is being moved) inside that directory. if the target is not a directory, obviously it can't, and that's not my issue with the "mv" command. if there is nothing at the target name, "mv" just move the...
Senior Member
Posted in Uncategorized
Views 352 Comments 2 Skaperen is offline

  



All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration