Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

concat two txt

#Using PowerShell
#Simply use the Get-Content and Set-Content cmdlets:

Get-Content inputFile1.txt, inputFile2.txt | Set-Content joinedFile.txt

#You can concatenate more than two files with this style, too.
#If the source files are named similarly, you can use wildcards:

Get-Content inputFile*.txt | Set-Content joinedFile.txt
Comment

PREVIOUS NEXT
Code Example
Shell :: duf in apt ubuntu 
Shell :: gen rsa 1024 
Shell :: how to locate a file in linux 
Shell :: run command on ctrl-c in shell script 
Shell :: Running a local script on a remote machine (or remote on local) 
Shell :: Apache2 Ubuntu Default Page 
Shell :: ansible ping ad hoc 
Shell :: how to install python package without admin rights 
Shell :: stash specific files git 
Shell :: initialize a local repository 
Shell :: how to run "npm start" ansible pm2 
Shell :: unix timestamp bash 
Shell :: i get your branch is ahead of master after I pulled from remote master 
Shell :: pip install caffe 
Shell :: git sync branch from master 
Shell :: bash function parameter 
Shell :: get client secret azure app registration powershell 
Shell :: how to register nuget repository powershell 
Shell :: set background image in linux cmd 
Shell :: To set the exit status of a shell script 
Shell :: disk not showing mac command line 
Shell :: git use stash on another computer 
Shell :: how to restore default apache httpd conf file 
Shell :: uninstall vlc from terminal 
Shell :: git merge to master 
Shell :: step7 pgadmin ubuntu 20.04 
Shell :: how to move git clone to another git repo 
Shell :: find index of string in bash 
Shell :: create file on terminal or git 
Shell :: uninstall editable pip 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =