Talk:split (Unix)
![]() | This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||
|
[Untitled]
edit"output is derived from standard input." Eh? Rich Farmbrough 13:55, 29 Jan 2005 (UTC)
Problem with syntax
editDoes the snippet
cat xa[a-c] > filename
not refer to brace expansion in bash, in which case it should be
cat xa{a..c} > filename
I won't change this since I may have overlooked something. --BiT (talk) 18:54, 2 October 2010 (UTC)
This brings the same result for me:
cat new0{0..9} > file1 && cat new0[0-9] > file2 && diff file1 file2
so you can safely assume both are correct
The curly brackets are expanded into the strings they represent. The square brackets only expand into the existing files that match the given pattern. —Preceding unsigned comment added by 65.200.61.50 (talk) 15:16, 16 October 2010 (UTC)
The square bracket syntax definitely works, removing 'factually disputed'. Graham king 3 (talk) 22:14, 30 November 2010 (UTC)
File spanning
editFile spanning (https://en.wikipedia.org/wiki/File_spanning) could be mentioned. — Preceding unsigned comment added by 178.128.100.221 (talk) 19:49, 2 July 2012 (UTC)
Folder / Directory
editSadly split 8.21 doesn't work with a directory as an input. It will say "split: [folder name]: Is a directory" --73.3.132.105 (talk) 22:07, 13 August 2020 (UTC)