Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Bash – CSV Row / Array To Single Column

Posted on October 19, 2021August 17, 2024 By David Kittell
cat environments.txt| sed "s|,|\n|g"| sed 's|"||g' | sed 's/^[ \t]*//;s/[ \t]*$//'
Originally Posted on October 19, 2021
Last Updated on August 17, 2024
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code UNIX UNIX Shell Scripts csvsingle column

Post navigation

Previous post
Next post

Related Posts

SELinux Configuration Change

Posted on July 21, 2016December 21, 2017

clear sudo cp /etc/selinux/config /etc/selinux/config.bk sudo sed -i ‘/^#/d’ /etc/selinux/config sudo sed -i ‘/^$/d’ /etc/selinux/config SELinuxStatus=$(cat /etc/selinux/config | grep SELINUX=|cut -d’=’ -f2) echo Current Status: $SELinuxStatus clear # SELinux – Enforcing sudo sed -i "s|SELINUX=$SELinuxStatus|SELINUX=enforcing|" /etc/selinux/config SELinuxStatus=$(cat /etc/selinux/config | grep SELINUX=|cut -d’=’ -f2) echo New Status: $SELinuxStatus clear # SELinux…

Read More

OpenSSL Generate Salt, Key and IV

Posted on October 21, 2015October 26, 2015

# For 256 CBC openssl enc -aes-256-cbc -k MySuperSecretPassPhrase -P -md sha1 The above code will generate this result (Make sure you set your MySuperSecretPassPhrase to something unique) salt=9286F768BE82A5DB key=30EF28D3A84CA1F0B24BBA23C329ECAE4445B6D61EF2EB43AEB6560096D4291D iv =FE2AB00F0B81EEA78F789980ACE6CAE3 Originally Posted on October 21, 2015Last Updated on October 26, 2015 All information on this site is shared…

Read More

PowerShell – List Sites with App Pool

Posted on November 10, 2015February 12, 2016

Import-Module WebAdministration clear $sites = @{Expression={$_.Name};Label="Site Name"}, ` @{Expression={$_.applicationPool};Label="Site App Pool";}, ` @{Expression={$_.PhysicalPath};Label="Site Physical Path";} dir IIS:\Sites | Format-Table $sites -AutoSize # List File Path for web.config files ForEach($item in (dir IIS:\Sites)) { write-host $item.Name $filePath = $item.PhysicalPath $fileName = "web.config" Get-ChildItem -Recurse -Force $filePath -ErrorAction SilentlyContinue | Where-Object {…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes