简体   繁体   中英

What is the equivalent linux command in Windows?

I am trying to merge all the files in Windows batch, then sort all the rows and filter only based on unique rows as header can be repeated many times. I ever used linux and in linux this command is just this however I am not sure how can I do the same in windows bash,

sed 1d *.csv | sort -r| uniq  > merged-file.csv

To do this without the sorting part, you can simply run this from cmdline or in a batchfile.

copy *.csv merged-file.csv

Which will copy the content of each csv file into merged-file.csv

To do the sorting and uniq part, you would need a little more than a simple oneliner.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM