Horje
bash write to file specific line Code Example
shell write multiple lines to file
#!/bin/bash

cat > /path/to/myfile <<EOL
write whatever youwant
with multiple lines
... 
EOL
bash write to file specific line
# It will write into 33 Line the word "anything" into specified file
sed -i '33i\anything' path_to_file
bash script to output a specific line of a file
/**
* A bash script to print at stdout line_number from file_name
* @line_number: the line number you want to print
* @file_name: the file you want to read from
*/

awk '{if(NR==line_number) print $0}' file_name
Source: leetcode.com




Shell

Related
makepkg resolve auto dependencies Code Example makepkg resolve auto dependencies Code Example
ne in shell script Code Example ne in shell script Code Example
see traffic github grepper Code Example see traffic github grepper Code Example
rmazenamento de chaves JKS usa um formato proprietário. É recomendada a migração para PKCS12, que é um formato de padrão industrial Code Example rmazenamento de chaves JKS usa um formato proprietário. É recomendada a migração para PKCS12, que é um formato de padrão industrial Code Example
manjaro how to erase a usb Code Example manjaro how to erase a usb Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
16