Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

awk split each character

echo "here is a string" | awk '
{ 
  split($0, chars, "")
  for (i=1; i <= length($0); i++) {
    printf("%s
", chars[i])
  }
}'
Comment

PREVIOUS NEXT
Code Example
Shell :: while loops in bash 
Shell :: 504 gateway time-out nginx/1.18.0 (ubuntu) 
Shell :: ubuntu list files 
Shell :: create branch git 
Shell :: sudo run command as another user 
Shell :: linux wsl on window space used 
Shell :: how install xampp in ubuntu 
Shell :: windows how to kill localhost:3000 
Shell :: downloading and updating vscode 
Shell :: how to merge git 
Shell :: mkdir -p option 
Shell :: cmake command not found 
Shell :: windows mac address ethernet 
Shell :: install pug angular 
Shell :: git asking for passphrase after restart 
Shell :: Automatically run program on Linux startup via systemd 
Shell :: Generate a new GitHub SSH key 
Shell :: bash check if file is readable 
Shell :: change branch git 
Shell :: raspberry pi wifi headless 
Shell :: git make directory 
Shell :: set permissions linux for drive chmod group 
Shell :: bash exit code 
Shell :: android/gradlew EACCES error 
Shell :: cut first 10 characters linux 
Shell :: cat first line 
Shell :: bash here document example 
Shell :: ubuntu navigate to directory in windows 
Shell :: sublime text linux 
Shell :: redis scan keys and print values shell 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =