My Code Helper
JavaScript
Python
Java
C#
C++
Ruby
Swift
Kotlin
TypeScript
Go
Rust
PHP
C
Objective-C
Dart
Scala
Perl
Lua
Haskell
R
MATLAB
VBA
F#
Groovy
Clojure
Elixir
Julia
CoffeeScript
Crystal
COBOL
Fortran
Ada
PL/SQL
T-SQL
Assembly
Shell Scripting
PowerShell
Bash
Racket
Scheme
Prolog
Erlang
Lisp
APL
Haxe
Pascal
Ada
Logo
Tcl
D
Nim
Io
ABAP
Scheme
FORTRAN
APL
COBOL
ALGOL
BASIC
PL/I
Lisp
Cobol
Forth
Ada
C
C++
Java
Python
JavaScript
Ruby
PHP
Swift
Kotlin
Go
Rust
Perl
Scala
Haskell
R
MATLAB
VBA
Objective-C
Dart
Lua
Elixir
Julia
CoffeeScript
Crystal
Groovy
Clojure
TypeScript
PowerShell
Shell Scripting
shell
csh
How can I view only the first n lines of the file?
I tried head +10 and it didn't work.
Solution
Based on its
man page
:
head -n 10 filename
Replace whole line containing a string using Sed
How to replace newlines with tab characters?
How can I strip first X characters from string using sed?
How to merge 2 JSON objects from 2 files using jq?
Convert .txt to .csv in shell
live output from subprocess command
Systemd timers - how to get Epoch timestamps?
Wider hexdump output
Expansion of variables inside single quotes in a command in Bash
Count occurrences of a char in a string using Bash
Capture stdout and stderr into different variables
Running shell command and capturing the output
Shell script common template
How does "(head; tail) < file" work?
OSX: check if the screen is locked
Split a single sql file into multiple files
How do I exclude a directory when using `find`?
How can I copy the output of a command directly into my clipboard?
How to pass 2 variables to a shell script in Mac automator
How to escape a $ in a Bash command
Escaping dollar sign and curly brace in Bash
How do I test if a variable is a number in Bash?
awk -F command is not found (ubuntu)
How can I call a shell script from Python code?
How can I call a Python script on Excel VBA?
Execute a shell script in current shell with sudo permission
How to suppress irrelevant ShellCheck messages?
Subtract days from a date in Bash
Delete file from SFTP server using sftp protocol in shell script
How to check if running as root in a bash script