Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash "read -p"

Line 5:  FIDE
INST_DESC:  DIAM Co Ltd/Japan => MAID Co Ltd/Japan
INST_NME:  DIAM Co Ltd/Japan => MAID Co Ltd/Japan


Line 6:  FIDE
INST_DESC:  DIAM DL/Pimco US Bond Open Born in the USA => MAID DL/Pimco US Bond Open Born in the USA
INST_NME:  DIAM DL/Pimco US Bond Open Born in the USA => MAID DL/Pimco US Bond Open Born in the USA
Comment

bash "read -p"

awk 'NR == FNR {
  /^[ 	]*47name/ && c++      # get the field number
  if (/^[ 	]*47size/) {
    split($0, t, ":")          
    gsub(/[ 	47,]/, x, t[2]) # strip punctuation
    fmt[c] = t[2]              # get the size 
    }
  next                         # run the above actions                                     
  }                            # + only for the first input file
{ 
  for (i=1; i<=NF; i++)        # output the strings in the correct format
    printf "%" (length($i) > fmt[i] ? "." : "-" ) fmt[i] "s", $i           
  print x
  }' config.txt temp.txt
Comment

bash "read -p"

#!/bin/bash
# Code for OSX 10.13.5. default UNICODE encoding.
echo""
echo "The default UTF-8..."
locale
echo""
echo "Change to 8 bit ASCII only..."
LANG="en_GB.US-ASCII"
export LANG="en_GB.US-ASCII"
locale
echo ""
for N in {0..255}
do
	printf 'x'$( printf "%02x" "$N" )
done
echo ""
Comment

PREVIOUS NEXT
Code Example
Shell :: command to know wifi ubuntu running 64 or 32 bits 
Shell :: batch rename folders & trim spaces & add prefix / suffix 
Shell :: Ubuntu brightness software GUI 
Shell :: OPEN ROOT FOLDER IN KLI 
Shell :: how to chck if i have bluetooth in lunux machine 
Shell :: git push exisiting rep 
Shell :: remove git module circle ci 
Shell :: ubuntu sysmon 
Shell :: git for nube 
Shell :: what is --save-dev check when we install a pachage 
Shell :: git rm folder 
Shell :: anbox install libhoudini 
Shell :: decodificador h.264 necessario para reproduzir ubuntu 20 
Shell :: UFT Developer Deployment 
Shell :: exclude host in ansible adhoc command 
Shell :: cups disable and reneable a printer 
Shell :: pdftk remove last page from pdf life 
Shell :: selinux apache 403 
Shell :: install ripgrep redhat 8 
Shell :: bash view specific columns from vcf file 
Shell :: gk420t driver windows 
Shell :: append filename at the beggining linux 
Shell :: virtuaboxl with kubernetes 
Shell :: how to pass docker hub credentials for helm values.yaml 
Shell :: aprire una finestra di navigazione terminale ubutnu 
Shell :: terminal codes 
Shell :: see processes from other terminals 
Shell :: nasa-ingenuity-helicopter github 
Shell :: git pull mirroring 
Shell :: fix errors occurred during update in linux 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =