Timeline for How to diff only the first line of two files?
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 1, 2022 at 14:23 | comment | added | xtropicalsoothing |
Why doesn't this work? diff < $(head file1) < $(head file2) . I thought the $(command) notation would work like this. But it throws an ambiguous redirect error.
|
|
May 11, 2016 at 0:03 | history | edited | nerdwaller | CC BY-SA 3.0 |
add shell compat detail
|
May 11, 2016 at 0:01 | comment | added | nerdwaller |
@Veridian - Yeah, process substitutions work differently there (I'm not sure how they do at all), bash -c "" will work or you need to find the same functionality in the different shell.
|
|
May 10, 2016 at 23:59 | comment | added | Veridian | I'm using the tcsh shell | |
May 10, 2016 at 19:20 | comment | added | nerdwaller |
@Veridian What shell are you using? This is bash specific, so you may need to call bash -c "diff <(...) <(...)"
|
|
May 10, 2016 at 19:10 | comment | added | Veridian | I get "missing name for redirect" when I try this command | |
Oct 4, 2015 at 16:13 | comment | added | lanoxx | Here you go: superuser.com/q/982063/194998 | |
Oct 4, 2015 at 16:09 | comment | added | nerdwaller | @lanoxx like I said, make a new question and link it. It's best practice for the super user community instead of expanding the scope of some other user's question. | |
Oct 4, 2015 at 16:07 | comment | added | lanoxx | Well basically the same question just recursively: Diff only ( the first n lines | everything except the first n lines) for for all files in two directories. | |
Oct 2, 2015 at 15:08 | comment | added | nerdwaller |
@lanoxx diff -r dir1 dir2 for directories, to limit it you'll probably want to pipe that to something else. If you have specifics open a new question and give a link here.
|
|
Oct 2, 2015 at 10:16 | comment | added | lanoxx | How would that work for recursive diff when I need to diff two directories? | |
Nov 29, 2012 at 16:25 | history | edited | nerdwaller | CC BY-SA 3.0 |
fixed my tildes
|
Nov 29, 2012 at 3:58 | vote | accept | gsgx | ||
Nov 27, 2012 at 16:40 | history | edited | nerdwaller | CC BY-SA 3.0 |
added 194 characters in body
|
Nov 27, 2012 at 16:32 | history | answered | nerdwaller | CC BY-SA 3.0 |