mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-16 06:58:18 +02:00
Rename to convert-csv2txt.ps1
This commit is contained in:
parent
a73e6d9885
commit
38f7ddb157
@ -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
|
||||
|
|
@ -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
|
||||
|
@ -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 {
|
Loading…
Reference in New Issue
Block a user