Rename to convert-csv2txt.ps1

This commit is contained in:
Markus Fleschutz 2021-04-10 10:17:09 +02:00
parent a73e6d9885
commit 38f7ddb157
3 changed files with 5 additions and 9 deletions

View File

@ -27,12 +27,12 @@ close-thunderbird.ps1, closes Mozilla Thunderbird gracefully
close-vlc.ps1, closes the VLC media player gracefully
close-windows-terminal.ps1, closes Windows Terminal gracefully
configure-git.ps1, sets up the Git user configuration
convert-csv2txt.ps1, converts the given CSV file into a text list
convert-mysql2csv.ps1, converts the MySQL database table to a CSV file
create-branch.ps1, creates a new branch in the current/given Git repository
create-shortcut.ps1, creates a shortcut
create-symlink.ps1, creates a symbolic link
create-tag.ps1, creates a new tag in the current/given Git repository
csv-to-text.ps1, converts the given CSV file into a text list
daily-tasks.sh, execute PowerShell scripts automatically as daily tasks (Linux only)
decrypt-file.ps1, decrypts the given file
display-time.ps1, displays the current time for 10 seconds by default

1 Script Description
27 close-vlc.ps1 closes the VLC media player gracefully
28 close-windows-terminal.ps1 closes Windows Terminal gracefully
29 configure-git.ps1 sets up the Git user configuration
30 convert-csv2txt.ps1 converts the given CSV file into a text list
31 convert-mysql2csv.ps1 converts the MySQL database table to a CSV file
32 create-branch.ps1 creates a new branch in the current/given Git repository
33 create-shortcut.ps1 creates a shortcut
34 create-symlink.ps1 creates a symbolic link
35 create-tag.ps1 creates a new tag in the current/given Git repository
csv-to-text.ps1 converts the given CSV file into a text list
36 daily-tasks.sh execute PowerShell scripts automatically as daily tasks (Linux only)
37 decrypt-file.ps1 decrypts the given file
38 display-time.ps1 displays the current time for 10 seconds by default

View File

@ -148,8 +148,8 @@ Mega Collection of PowerShell Scripts
* [check-ipv4-address.ps1](Scripts/check-ipv4-address.ps1) - checks the given IPv4 address for validity
* [check-ipv6-address.ps1](Scripts/check-ipv6-address.ps1) - checks the given IPv6 address for validity
* [check-mac-address.ps1](Scripts/check-mac-address.ps1) - checks the given MAC address for validity
* [convert-csv2txt.ps1](Scripts/convert-csv2txt.ps1) - converts the given CSV file into a text list
* [convert-mysql2csv.ps1](Scripts/convert-mysql2csv.ps1) - converts the MySQL database table to a CSV file
* [csv-to-text.ps1](Scripts/csv-to-text.ps1) - converts the given CSV file into a text list
* [display-time.ps1](Scripts/display-time.ps1) - displays the current time for 10 seconds by default
* [generate-qrcode.ps1](Scripts/generate-qrcode.ps1) - generates a QR code
* [list-anagrams.ps1](Scripts/list-anagrams.ps1) - lists all anagrams of the given word

View File

@ -1,23 +1,19 @@
#!/usr/bin/pwsh
<#
.SYNTAX csv-to-text.ps1 [<csv-file>]
.SYNTAX convert-csv2txt.ps1 [<csv-file>]
.DESCRIPTION converts the given CSV file into a text list
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
param([String]$Path)
if ($Path -eq "" ) {
$Path = read-host "Enter path to CSV file"
}
param($Path = "")
if ($Path -eq "" ) { $Path = read-host "Enter path to CSV file" }
try {
$Table = Import-CSV -path "$Path" -header A,B,C,D,E,F,G,H
foreach($Row in $Table) {
write-output "* $($Row.A) $($Row.B) $($Row.C) $($Row.D) $($Row.E) $($Row.F) $($Row.G) $($Row.H)"
# write-output "* [$($Row.B)](ipfs::$($Row.A))"
}
exit 0
} catch {