Search code examples
EXAMPLE-A
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
Using the passwd command from within a shell script
gawk hangs when using a regex for RS combined with reading a continuous stream from stdin
How do you normalize a file path in Bash?
Print all but the first three columns
Using sed, how do you print the first 'N' characters of a line?
How would I use strings inside a for loop?
set -e exits at i=0;let i++
How to view files in binary from bash?
Using awk to print all columns from the nth to the last
Extract a string betwen two characters of bigger string with "cut" or "sed"
How can Bash execute a command in a different directory context?
mkdir -p fails when directory exists
Can I call a function of a shell script from another shell script?
What does the Bash operator <<< (i.e. triple less than sign) mean?
How to write a REGEXP_EXTRACT expression in Google Cloud Logging config json?
'find -exec' a shell function in Linux
How to get string with disctinct (unique) characters from existing string in bash script?
How do I write a shell script that displays SQLite results?
Powershell Cannot find drive. A drive with the name ' C' does not exist
Remove a character from the end of a variable
How to get process ID of background process?
How can I repeat a character in Bash?
How do I kill background processes / jobs when my shell script exits?
Does all linux users are present on /etc/passwd?
Replace a record with a value zero when a specific number is not find with shellscript
docker entrypoint running bash script gets "permission denied"
How to send data to local clipboard from a remote SSH session
Running multiple commands in one line in shell
echo a command that echoes a quoted string
Why does command substitution work in these ways?